forked from duckie/named_types
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
157 lines (150 loc) · 4.25 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
language: cpp
sudo: required
dist: trusty
matrix:
include:
# 1/ Linux GCC Builds
#
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
env: C_COMPILER=gcc-5 CXX_COMPILER=g++-5 BUILD_TYPE='Release' SANITIZER=""
#
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
env: C_COMPILER=gcc-5 CXX_COMPILER=g++-5 BUILD_TYPE='Coverage' SANITIZER=""
#
#- compiler: gcc
#addons:
#apt:
#sources:
#- ubuntu-toolchain-r-test
#packages:
#- g++-5
#env: C_COMPILER=gcc-5 CXX_COMPILER=g++-5 BUILD_TYPE='Debug' SANITIZER="address"
# Not supported on travis, libtsan is missing
#- compiler: gcc
#addons:
#apt:
#sources:
#- ubuntu-toolchain-r-test
#packages:
#- g++-5
#env: C_COMPILER=gcc-5 CXX_COMPILER=g++-5 BUILD_TYPE='Debug' SANITIZER="thread"
#
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
env: C_COMPILER=gcc-5 CXX_COMPILER=g++-5 BUILD_TYPE='Debug' SANITIZER="undefined"
# 2/ Linux Clang Builds
#
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- g++-5
- clang-3.8
env: C_COMPILER=clang-3.8 CXX_COMPILER=clang++-3.8 BUILD_TYPE='Release' SANITIZER=""
#
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- g++-5
- clang-3.8
env: C_COMPILER=clang-3.8 CXX_COMPILER=clang++-3.8 BUILD_TYPE='Debug' SANITIZER="address"
# Disabled for now because of false positive and failing blacklist
#- compiler: clang
#addons:
#apt:
#sources:
#- ubuntu-toolchain-r-test
#- llvm-toolchain-precise-3.8
#packages:
#- clang-3.8
#env: C_COMPILER=clang-3.8 CXX_COMPILER=clang++-3.8 BUILD_TYPE='Debug' SANITIZER="memory"
#
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- g++-5
- clang-3.8
env: C_COMPILER=clang-3.8 CXX_COMPILER=clang++-3.8 BUILD_TYPE='Debug' SANITIZER="thread"
#
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- g++-5
- clang-3.8
env: C_COMPILER=clang-3.8 CXX_COMPILER=clang++-3.8 BUILD_TYPE='Debug' SANITIZER="undefined"
# 3/ OSX Clang Builds
#
- os: osx
osx_image: xcode8
compiler: clang
env: C_COMPILER=clang CXX_COMPILER='clang++' BUILD_TYPE='Release' SANITIZER=""
- os: osx
osx_image: xcode8
compiler: clang
env: C_COMPILER=clang CXX_COMPILER='clang++' BUILD_TYPE='Debug' SANITIZER="address" ASAN_OPTIONS="handle_segv=0:allow_user_segv_handler=1"
# Currently unsupported
#- os: osx
#osx_image: xcode8
#compiler: clang
#env: COMPILER='clang++' BUILD_TYPE='Debug' SANITIZER="memory"
#
- os: osx
osx_image: xcode8
compiler: clang
env: C_COMPILER=clang CXX_COMPILER='clang++' BUILD_TYPE='Debug' SANITIZER="thread"
# Should be supported but fails at link
#- os: osx
#osx_image: xcode8
#compiler: clang
#env: C_COMPILER=clang CXX_COMPILER='clang++' BUILD_TYPE='Debug' SANITIZER="undefined"
install:
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
before_script:
- export CC=${C_COMPILER}
- export CXX=${CXX_COMPILER}
- cd ${TRAVIS_BUILD_DIR}
- mkdir -p Build
- cd Build
- cmake --version
- cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DPROJECT_BUILD_SANITIZER_TYPE=${SANITIZER}
script:
- make -j2
- ctest -V
after_success:
- |
if [[ "${BUILD_TYPE}" == "Coverage" ]]; then
bash <(curl -s https://codecov.io/bash)
fi