forked from icecc/icecream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
75 lines (70 loc) · 1.85 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
language: cpp
script:
- ./autogen.sh
- ./configure --prefix=$PWD/_inst
- make
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make test; fi
matrix:
include:
- os: linux
sudo: true # for setcap so we can run the tests in chroot.
compiler: gcc
dist: trusty
- os: linux
sudo: true # for setcap so we can run the tests in chroot.
compiler: clang
dist: trusty
- os: linux
sudo: true # for setcap so we can run the tests in chroot.
compiler: clang
env: BUILD_TYPE=asan
dist: trusty
- os: linux
sudo: true # for setcap so we can run the tests in chroot.
compiler: clang
env: BUILD_TYPE=lsan
dist: trusty
- os: linux
sudo: true # for setcap so we can run the tests in chroot.
compiler: clang
env: BUILD_TYPE=ubsan
dist: trusty
- os: osx
before_install:
- brew update
- brew install lzo docbook2x
allow_failures:
- compiler: clang
env: BUILD_TYPE=lsan
before_script:
- |
if [ "$BUILD_TYPE" == "asan" ]; then
export SAN_FLAGS="-fsanitize=address -fno-omit-frame-pointer"
fi
- |
if [ "$BUILD_TYPE" == "lsan" ]; then
export SAN_FLAGS="-fsanitize=leak -fno-omit-frame-pointer"
fi
- |
if [ "$BUILD_TYPE" == "msan" ]; then
export SAN_FLAGS="-fsanitize=memory-fno-omit-frame-pointer"
fi
- |
if [ "$BUILD_TYPE" == "ubsan" ]; then
export SAN_FLAGS="-fsanitize=undefined -fno-omit-frame-pointer"
export LDFLAGS="$UBSAN_FLAGS ${LDFLAGS}"
export UBSAN_OPTIONS=print_stacktrace=1
fi
- |
export CFLAGS="${SAN_FLAGS} ${CFLAGS} -Wall -Wextra"
export CXXFLAGS="${SAN_FLAGS} ${CXXFLAGS} -Wall -Wextra"
export LDFLAGS="${SAN_FLAGS} ${LDFLAGS}"
addons:
apt:
packages:
- clang
- libcap-ng-dev
- libcap-ng-utils
- liblzo2-dev
- docbook2x
- realpath