forked from WebAssembly/binaryen
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
56 lines (45 loc) · 1.64 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
sudo: false
language: cpp
python:
- "2.7"
matrix:
include:
- env: CC_COMPILER="./test/wasm-install/wasm-install/bin/clang" CXX_COMPILER="./test/wasm-install/wasm-install/bin/clang++"
dist: trusty
compiler: clang
addons: &gcc5
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['cmake', 'nodejs', 'g++-5']
- env: CC_COMPILER="./test/wasm-install/wasm-install/bin/clang" CXX_COMPILER="./test/wasm-install/wasm-install/bin/clang++" COMPILER_FLAGS="-fsanitize=undefined -fno-sanitize-recover=all -fsanitize-blacklist=`pwd`/ubsan.blacklist"
dist: trusty
compiler: clang
addons: *gcc5
- env: CC_COMPILER="./test/wasm-install/wasm-install/bin/clang" CXX_COMPILER="./test/wasm-install/wasm-install/bin/clang++" COMPILER_FLAGS="-fsanitize=address"
dist: trusty
compiler: clang
addons: *gcc5
- env: CC_COMPILER="./test/wasm-install/wasm-install/bin/clang" CXX_COMPILER="./test/wasm-install/wasm-install/bin/clang++" COMPILER_FLAGS="-fsanitize=thread"
dist: trusty
compiler: clang
addons: *gcc5
- env: CC_COMPILER="gcc-5" CXX_COMPILER="g++-5"
dist: trusty
compiler: gcc
addons: *gcc5
before_install:
- export CC="${CC_COMPILER}"
- export CXX="${CXX_COMPILER}"
- export ASAN_OPTIONS="symbolize=1"
install:
- pip install --user flake8
before_script:
# Check the style of a subset of Python code until the other code is updated.
- flake8 ./scripts/
script:
- ./check.py --only-prepare
- cmake . -DCMAKE_C_FLAGS="$COMPILER_FLAGS" -DCMAKE_CXX_FLAGS="$COMPILER_FLAGS"
- make -j2
- ./check.py
notifications:
email: false