-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
249 lines (247 loc) · 6.5 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
dist: xenial
language: cpp
matrix:
include:
- compiler: gcc-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- libunwind8-dev
env: MYCC=gcc-4.8 MYCXX=g++-4.8
- compiler: gcc-5
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- libunwind8-dev
env: MYCC=gcc-5 MYCXX=g++-5
- compiler: gcc-6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- libunwind8-dev
env: MYCC=gcc-6 MYCXX=g++-6
- compiler: gcc-7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- libunwind8-dev
env: MYCC=gcc-7 MYCXX=g++-7
- compiler: gcc-8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
- libunwind8-dev
env: MYCC=gcc-8 MYCXX=g++-8
- compiler: gcc-9
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9
- libunwind8-dev
env: MYCC=gcc-9 MYCXX=g++-9
- compiler: gcc-10
dist: bionic
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-10
- libunwind8-dev
env: MYCC=gcc-10 MYCXX=g++-10
- compiler: gcc-7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- libunwind8-dev
- lcov
env: MYCC=gcc-7 MYCXX=g++-7 CODE_COVERAGE=on
- compiler: clang-3.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty
packages:
- clang-3.8
- libunwind8-dev
env: MYCC=clang-3.8 MYCXX=clang++-3.8
- compiler: clang-3.9
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-3.9
packages:
- clang-3.9
- libunwind8-dev
env: MYCC=clang-3.9 MYCXX=clang++-3.9
- compiler: clang-4.0
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial
packages:
- clang-4.0
- libunwind8-dev
env: MYCC=clang-4.0 MYCXX=clang++-4.0
- compiler: clang-5.0
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial
packages:
- clang-5.0
- libunwind8-dev
env: MYCC=clang-5.0 MYCXX=clang++-5.0
- compiler: clang-6.0
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial-6.0
packages:
- clang-6.0
- libunwind8-dev
env: MYCC=clang-6.0 MYCXX=clang++-6.0
- compiler: clang-7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial-7
packages:
- clang-7
- libunwind8-dev
env: MYCC=clang MYCXX=clang++
- compiler: clang-8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial-8
packages:
- clang-8
- libunwind8-dev
env: MYCC=clang MYCXX=clang++
- compiler: clang-9
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main
key_url: https://apt.llvm.org/llvm-snapshot.gpg.key
packages:
- clang-9
- libunwind8-dev
env: MYCC=clang-9 MYCXX=clang++-9
- compiler: clang-10
dist: bionic
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: deb https://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main
key_url: https://apt.llvm.org/llvm-snapshot.gpg.key
packages:
- clang-10
- libunwind8-dev
env: MYCC=clang-10 MYCXX=clang++-10
- compiler: clang-8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial-8
packages:
- clang-8
- libunwind8-dev
env: MYCC=clang MYCXX=clang++ ENABLE_UBSAN=on
- compiler: gcc-9
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9
- libunwind8-dev
env: MYCC=gcc-9 MYCXX=g++-9 ENABLE_ASAN=on
- compiler: gcc-9
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9
- libunwind8-dev
env: MYCC=gcc-9 MYCXX=g++-9 ENABLE_TSAN=on
- compiler: x86_64-w64-mingw32-g++
addons:
apt:
packages:
- g++-mingw-w64-x86-64
- libunwind8-dev
env: MYCC=/usr/bin/x86_64-w64-mingw32-gcc MYCXX=/usr/bin/x86_64-w64-mingw32-g++
script:
- mkdir build
- cd build
- BUILD_TYPE=Release
- |
if [[ "$MYCC" == *mingw* ]] ; then
ADD_OPTS="-DCMAKE_TOOLCHAIN_FILE=$TRAVIS_BUILD_DIR/Toolchain-cross-mingw-linux.cmake"
else
ADD_OPTS="-DCMAKE_C_COMPILER=$MYCC -DCMAKE_CXX_COMPILER=$MYCXX"
fi
- |
if [[ -n "$ENABLE_ASAN" ]] ; then
ADD_OPTS="$ADD_OPTS -DENABLE_ASAN=$ENABLE_ASAN"
BUILD_TYPE=Debug
fi
- |
if [[ -n "$ENABLE_TSAN" ]] ; then
ADD_OPTS="$ADD_OPTS -DENABLE_TSAN=$ENABLE_TSAN"
BUILD_TYPE=Debug
fi
- |
if [[ -n "$ENABLE_UBSAN" ]] ; then
ADD_OPTS="$ADD_OPTS -DENABLE_UBSAN=$ENABLE_UBSAN"
BUILD_TYPE=Debug
fi
- |
if [[ -n "$CODE_COVERAGE" ]] ; then
ADD_OPTS="$ADD_OPTS -DENABLE_COVERAGE=$CODE_COVERAGE"
BUILD_TYPE=Debug
fi
- ADD_OPTS="$ADD_OPTS -DCMAKE_BUILD_TYPE=$BUILD_TYPE"
- cmake $ADD_OPTS ..
- make
- if [[ "$MYCC" != *mingw* ]] ; then make runtest; fi
- |
if [[ -n "$CODE_COVERAGE" ]] ; then
lcov -d . -c -o coverage.info # parse coverage data
lcov -r coverage.info "/usr*" -o coverage.info # remove data for system headers
lcov -l coverage.info # just list a short summary of the results
bash <(curl -s https://codecov.io/bash)
fi