-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy path.travis.yml
342 lines (333 loc) · 8.7 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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
# libb2 reference source code package - Travis testing configuration
#
# Copyright 2020, Samuel Neves <[email protected]>. You may use this under the
# terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
# your option. The terms of these licenses can be found at:
#
# - CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
# - OpenSSL license : https://www.openssl.org/source/license.html
# - Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
#
# More information about the BLAKE2 hash function can be found at
# https://blake2.net.
# DO NOT create top level (global) keys like env, arch, os, compiler.
# The top level/global keys invoke [unwanted] matrix expansion. Also
# see https://stackoverflow.com/q/58473000/608639 and
# https://docs.travis-ci.com/user/reference/overview/ and
# https://docs.travis-ci.com/user/multi-cpu-architectures and
# https://github.com/travis-ci/travis-yml/blob/master/schema.json.
language: c
dist: bionic
git:
depth: 5
# Use jobs rather than matrix since we are precisely specifiying our
# test cases. Do not move any of the keys (env, os, arch, compiler, etc)
# into global. Putting them in global invokes the matrix expansion.
jobs:
include:
# AMD64 testing
- name: GCC, amd64, no-opts
os: linux
arch: amd64
compiler: gcc
env:
- BUILD_OPTS=
- name: GCC, amd64, enable-fat
os: linux
arch: amd64
compiler: gcc
env:
- BUILD_OPTS="--enable-fat"
- name: GCC, amd64, disable-native
os: linux
arch: amd64
compiler: gcc
env:
- BUILD_OPTS="--disable-native"
- name: GCC, amd64, enable-openmp
os: linux
arch: amd64
compiler: gcc
env:
- BUILD_OPTS="--enable-openmp"
- name: GCC, amd64, disable-openmp
os: linux
arch: amd64
compiler: gcc
env:
- BUILD_OPTS="--disable-openmp"
- name: Clang, amd64, no-opts
os: linux
arch: amd64
compiler: clang
env:
- CC=clang-8
- BUILD_OPTS=
- name: Clang, amd64, enable-fat
os: linux
arch: amd64
compiler: clang
env:
- CC=clang-8
- BUILD_OPTS="--enable-fat"
- name: Clang, amd64, disable-native
os: linux
arch: amd64
compiler: clang
env:
- CC=clang-8
- BUILD_OPTS="--disable-native"
- name: Clang, amd64, enable-openmp
os: linux
arch: amd64
compiler: clang
env:
- CC=clang-8
- BUILD_OPTS="--enable-openmp"
- name: Clang, amd64, disable-openmp
os: linux
arch: amd64
compiler: clang
env:
- CC=clang-8
- BUILD_OPTS="--disable-openmp"
# OS X testing
- name: Clang, OS X, amd64, no-opts
os: osx
osx_image: xcode11.6
arch: amd64
compiler: clang
env:
- BUILD_OPTS=
- name: Clang, OS X, amd64, enable-fat
os: osx
osx_image: xcode11.6
arch: amd64
compiler: clang
env:
- BUILD_OPTS="--enable-fat"
- name: Clang, OS X, amd64, disable-native
os: osx
osx_image: xcode11.6
arch: amd64
compiler: clang
env:
- BUILD_OPTS="--disable-native"
- name: Clang, OS X, amd64, enable-openmp
os: osx
osx_image: xcode11.6
arch: amd64
compiler: clang
env:
- BUILD_OPTS="--enable-openmp"
- name: Clang, OS X, amd64, disable-openmp
os: osx
osx_image: xcode11.6
arch: amd64
compiler: clang
env:
- BUILD_OPTS="--disable-openmp"
# Aarch64 testing
- name: GCC, aarch64, no-opts
os: linux
arch: arm64
compiler: gcc
env:
- BUILD_OPTS=
- name: GCC, aarch64, disable-native
os: linux
arch: arm64
compiler: gcc
env:
- BUILD_OPTS="--disable-native"
- name: GCC, aarch64, enable-openmp
os: linux
arch: arm64
compiler: gcc
env:
- BUILD_OPTS="--enable-openmp"
- name: GCC, aarch64, disable-openmp
os: linux
arch: arm64
compiler: gcc
env:
- BUILD_OPTS="--disable-openmp"
- name: Clang, aarch64, no-opts
os: linux
arch: arm64
compiler: clang
env:
- CC=clang-8
- BUILD_OPTS=
- name: Clang, aarch64, disable-native
os: linux
arch: arm64
compiler: clang
env:
- CC=clang-8
- BUILD_OPTS="--disable-native"
- name: Clang, aarch64, enable-openmp
os: linux
arch: arm64
compiler: clang
env:
- CC=clang-8
- BUILD_OPTS="--enable-openmp"
- name: Clang, aarch64, disable-openmp
os: linux
arch: arm64
compiler: clang
env:
- CC=clang-8
- BUILD_OPTS="--disable-openmp"
# PowerPC testing
- name: GCC, ppc64le, no-opts
os: linux
arch: ppc64le
compiler: gcc
env:
- BUILD_OPTS=
- name: GCC, ppc64le, disable-native
os: linux
arch: ppc64le
compiler: gcc
env:
- BUILD_OPTS="--disable-native"
- name: GCC, ppc64le, enable-openmp
os: linux
arch: ppc64le
compiler: gcc
env:
- BUILD_OPTS="--enable-openmp"
- name: GCC, ppc64le, disable-openmp
os: linux
arch: ppc64le
compiler: gcc
env:
- BUILD_OPTS="--disable-openmp"
- name: Clang, ppc64le, no-opts
os: linux
arch: ppc64le
compiler: clang
env:
- CC=clang-8
- BUILD_OPTS=
- name: Clang, ppc64le, disable-native
os: linux
arch: ppc64le
compiler: clang
env:
- CC=clang-8
- BUILD_OPTS="--disable-native"
- name: Clang, ppc64le, enable-openmp
os: linux
arch: ppc64le
compiler: clang
env:
- CC=clang-8
- BUILD_OPTS="--enable-openmp"
- name: Clang, ppc64le, disable-openmp
os: linux
arch: ppc64le
compiler: clang
env:
- CC=clang-8
- BUILD_OPTS="--disable-openmp"
# s390x testing
- name: GCC, s390x, no-opts
os: linux
arch: s390x
compiler: gcc
env:
- BUILD_OPTS=
- name: GCC, s390x, disable-native
os: linux
arch: s390x
compiler: gcc
env:
- BUILD_OPTS="--disable-native"
- name: GCC, s390x, enable-openmp
os: linux
arch: s390x
compiler: gcc
env:
- BUILD_OPTS="--enable-openmp"
- name: GCC, s390x, disable-openmp
os: linux
arch: s390x
compiler: gcc
env:
- BUILD_OPTS="--disable-openmp"
- name: Clang, s390x, no-opts
os: linux
arch: s390x
compiler: clang
env:
- CC=clang-8
- BUILD_OPTS=
- name: Clang, s390x, disable-native
os: linux
arch: s390x
compiler: clang
env:
- CC=clang-8
- BUILD_OPTS="--disable-native"
- name: Clang, s390x, enable-openmp
os: linux
arch: s390x
compiler: clang
env:
- CC=clang-8
- BUILD_OPTS="--enable-openmp"
- name: Clang, s390x, disable-openmp
os: linux
arch: s390x
compiler: clang
env:
- CC=clang-8
- BUILD_OPTS="--disable-openmp"
allow_failures:
# Clang has a fair amount of trouble
# on platforms Apple does not support
- os: linux
arch: s390x
compiler: clang
# Clang 7.0 and below will likely have trouble on ppc64le
# due to https://bugs.llvm.org/show_bug.cgi?id=39704.
# Also see https://bugs.llvm.org/show_bug.cgi?id=46571.
- os: linux
arch: ppc64le
compiler: clang
# And https://bugs.llvm.org/show_bug.cgi?id=46572
- os: linux
arch: arm64
compiler: clang
before_install:
- |
# Clang 7 compiler is completely broken on PPC64 and s390x
# Clang 8 is needed for OpenMP on Aarch64
if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_COMPILER" == "clang" ]]; then
# https://github.com/travis-ci/travis-ci/issues/9037
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A145
sudo apt-get -qq -y install --no-install-recommends clang-8 || true
sudo apt-get -qq -y install --no-install-recommends libomp-8-dev || true
sudo apt-get -qq -y install --no-install-recommends libomp5-8 || true
fi
# Add 'cat src/test-suite.log' as required.
script:
- |
./autogen.sh
./configure ${BUILD_OPTS}
make CC="${CC}" -j 3
make CC="${CC}" check
# Whitelist branches to avoid testing feature branches twice
branches:
only:
- master
- /\/ci$/
#notifications:
# email:
# recipients:
# on_success: always # default: change
# on_failure: always # default: always