Repository navigation
Expand file tree
/
Copy path.travis.yml
More file actions
357 lines (328 loc) · 9.91 KB
/
Copy path.travis.yml
File metadata and controls
357 lines (328 loc) · 9.91 KB
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
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
language: c
dist: bionic
cache: ccache
branches:
except:
- /^(wip\/)?(appveyor|drone|gh\-actions|azure|circleci)(\-.+)?$/
env:
global:
- ARCH_FLAGS="-march=native"
- BUILD_CPP_TESTS=ON
- CMAKE_GENERATOR='Ninja'
- RUN_TESTS=true
- OPTIMIZATION_FLAGS=''
- DIAGNOSTIC_FLAGS='-Wall -Wextra -Werror'
- TEST_ARG_SEPARATOR=""
jobs:
include:
- name: "gcc-9"
if: branch != master OR type == pull_request
compiler: gcc-9
env:
- C_COMPILER=gcc-9
- CXX_COMPILER=g++-9
- COMPILER_FLAGS='-fsanitize=address,undefined'
- OPTIMIZATION_FLAGS=''
addons:
apt:
sources:
- sourceline: "ppa:ubuntu-toolchain-r/test"
key_url: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x60c317803a41ba51845e371a1e9377a2ba9ef27f
packages:
- gcc-9
- g++-9
- name: "clang-10"
if: branch != master OR type == pull_request
compiler: clang-10
env:
- C_COMPILER=clang-10
- CXX_COMPILER=clang++-10
- COMPILER_FLAGS='-fsanitize=address,undefined'
- DIAGNOSTIC_FLAGS='-Weverything -Werror -Wno-c++98-compat-pedantic -Wno-newline-eof'
addons:
apt:
sources:
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- clang-10
- name: "clang-3.8"
if: branch != master OR type == pull_request
compiler: clang-3.8
dist: xenial
env:
- C_COMPILER=clang-3.8
- CXX_COMPILER=clang++-3.8
- DIAGNOSTIC_FLAGS='-Weverything -Werror -Wno-c++98-compat-pedantic -Wno-newline-eof'
- ARCH_FLAGS='-mavx2'
addons:
apt:
packages:
- clang-3.8
- libc++-dev
- name: "gcc-8 x86"
if: branch != master OR type == pull_request
arch: amd64
compiler: gcc-8
env:
- C_COMPILER=gcc-8
- CXX_COMPILER=g++-8
- ARCH_FLAGS="-m32"
addons:
apt:
packages:
- libc6:i386
- libc6-dev:i386
- gcc-8:i386
- g++-8:i386
- cpp-8:i386
- binutils:i386
- binutils-i686-linux-gnu:i386
- name: "aarch64"
if: branch != master OR type == pull_request
arch: arm64
env:
- ARCH_FLAGS="-march=armv8-a+simd"
- name: "ppc64le"
if: branch != master OR type == pull_request
arch: ppc64le
compiler: gcc-10
env:
- ARCH_FLAGS="-mcpu=native"
- C_COMPILER=gcc-10
- CXX_COMPILER=g++-10
- OPTIMIZATION_FLAGS=-O2
addons:
apt:
packages:
- gcc-10
- g++-10
addons:
apt:
sources:
- sourceline: "ppa:ubuntu-toolchain-r/test"
key_url: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x60c317803a41ba51845e371a1e9377a2ba9ef27f
packages:
- gcc-10
- g++-10
- name: "-DSIMDE_NO_SHUFFLE_VECTOR"
if: branch != master OR type == pull_request
env:
- COMPILER_FLAGS=-DSIMDE_NO_SHUFFLE_VECTOR
- OPTIMIZATION_FLAGS=''
- name: "armv8-a"
if: branch != master OR type == pull_request
arch: arm64
env:
- C_COMPILER=arm-linux-gnueabihf-gcc
- CXX_COMPILER=arm-linux-gnueabihf-g++
- ARCH_FLAGS="-march=armv8-a"
install:
- sudo dpkg --add-architecture armhf
- sudo apt-get update
- sudo apt-get -y install crossbuild-essential-armhf libc6:armhf libstdc++6:armhf
- name: "armv7-a"
if: branch != master OR type == pull_request
arch: arm64
env:
- C_COMPILER=arm-linux-gnueabihf-gcc
- CXX_COMPILER=arm-linux-gnueabihf-g++
- ARCH_FLAGS="-march=armv7-a"
install:
- sudo dpkg --add-architecture armhf
- sudo apt-get update
- sudo apt-get -y install crossbuild-essential-armhf libc6:armhf libstdc++6:armhf
- name: icc
if: branch != master OR type == pull_request
compiler: icc
env:
- C_COMPILER=icc
- CXX_COMPILER=icpc
- DIAGNOSTIC_FLAGS='-wd13200 -wd13203 -wd16219 -Wall'
install:
- source /opt/intel/inteloneapi/compiler/latest/env/vars.sh
addons:
apt:
sources:
- sourceline: 'deb https://apt.repos.intel.com/oneapi all main'
key_url: 'https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB'
packages:
- intel-oneapi-icc
# - name: "pgcc"
# if: branch != master OR type == pull_request
# env:
# - C_COMPILER=pgcc
# - CXX_COMPILER=pgc++
# - ARCH_FLAGS="-m64"
# - BUILD_CPP_TESTS=OFF
# - DIAGNOSTIC_FLAGS=
# install:
# - curl 'https://raw.githubusercontent.com/nemequ/pgi-travis/master/install-pgi.sh' | /bin/sh
- name: "xlc"
if: branch != master OR type == pull_request
arch: ppc64le
install:
- wget -q https://public.dhe.ibm.com/software/server/POWER/Linux/xl-compiler/eval/ppc64le/ubuntu/public.gpg -O- | sudo apt-key add -
- echo "deb https://public.dhe.ibm.com/software/server/POWER/Linux/xl-compiler/eval/ppc64le/ubuntu/ ${TRAVIS_DIST} main" >> /etc/apt/sources.list
- sudo apt-get update
- export XLC_VERSION="$(apt-cache search '^xlc\.[0-9]+\.[0-9]+\.[0-9]+$' | awk '{ print substr($1, 5) }')"
- sudo apt-get install "xlc.${XLC_VERSION}" "xlc-license-community.${XLC_VERSION}"
- sudo /opt/ibm/xlC/${XLC_VERSION}/bin/xlc_configure <<< 1 >/dev/null
env:
- ARCH_FLAGS=-qarch=auto
- C_COMPILER=xlc
- CXX_COMPILER=xlc++
- name: osx
if: branch != master OR type == pull_request
os: osx
- name: msvc x86
if: branch != master OR type == pull_request
os: windows
env:
- ARCH_FLAGS=""
- CMAKE_GENERATOR="Visual Studio 15 2017"
- OPTIMIZATION_FLAGS="/Ox"
- DIAGNOSTIC_FLAGS="/W4 /WX"
- name: msvc x86_64
if: branch != master OR type == pull_request
os: windows
env:
- ARCH_FLAGS="/arch:AVX2"
- CMAKE_GENERATOR="Visual Studio 15 2017 Win64"
- OPTIMIZATION_FLAGS="/Ox"
- DIAGNOSTIC_FLAGS="/W4 /WX"
- name: msvc arm
if: branch != master OR type == pull_request
os: windows
env:
- ARCH_FLAGS=""
- CMAKE_GENERATOR="Visual Studio 15 2017 ARM"
- RUN_TESTS=false
- OPTIMIZATION_FLAGS="/Ox"
- DIAGNOSTIC_FLAGS="/W4 /WX"
- name: "gcc-7 amd64"
if: branch != master OR type == pull_request
compiler: gcc
arch: amd64
- name: "clang-7 amd64"
if: branch != master OR type == pull_request
arch: amd64
compiler: clang
- name: gcc-4.8
if: branch != master OR type == pull_request
dist: trusty
env:
# Lots of -Wunused-but-set-variable false positives
- DIAGNOSTIC_FLAGS='-Wall -Wextra -Wno-unused-but-set-variable -Werror'
addons:
apt:
packages:
- cmake
sources:
- kalakris-cmake
- name: s390x
if: branch != master OR type == pull_request
arch: s390x
- name: emscripten
if: branch != master OR type == pull_request
compiler: emcc
env:
- ARCH_FLAGS="-msimd128"
- C_COMPILER=emcc
- CXX_COMPILER=emcc
- CONFIGURE_WRAPPER=emcmake
- BUILD_WRAPPER=emmake
- EXECUTABLE_EXTENSION=.js
- TEST_WRAPPER="${HOME}/.jsvu/v8 --experimental-wasm-simd"
- OPTIMIZATION_FLAGS="-O3"
- TEST_ARG_SEPARATOR="--"
- DIAGNOSTIC_FLAGS='-Weverything'
addons:
apt:
packages:
- nodejs
install:
- |
git clone https://github.com/emscripten-core/emsdk.git
emsdk/emsdk update-tags
emsdk/emsdk install tot
emsdk/emsdk activate tot
source emsdk/emsdk_env.sh
- |
npm install jsvu -g
jsvu --os=linux64 --engines=v8
##
## Special builds to deploy from master
##
- name: push-to-no-tests
if: branch = master AND type != pull_request AND repo = simd-everywhere/simde
addons:
apt:
packages:
- python3-pip
- python3-setuptools
before_install:
- git fetch --unshallow
- pip3 install git-filter-repo
script:
- |
git filter-repo --force --path-rename COPYING:.no-test/COPYING && \
git filter-repo --path-rename '.no-test/':'simde/' && \
git filter-repo --subdirectory-filter simde
after_script:
- git push -q "https://${NO_TESTS_TOKEN}@github.com/simd-everywhere/simde-no-tests" master
allow_failures:
- name: msvc x86
before_install:
- |
if [ "${CMAKE_GENERATOR}" = "Ninja" ]; then
case "${TRAVIS_OS_NAME}" in
"linux")
sudo apt-get install -y ninja-build parallel
;;
"osx")
brew install ninja
;;
"windows")
choco install ninja
;;
esac
fi
- cat /proc/cpuinfo || true
- cat /proc/meminfo || true
## If we use the matrix to set CC/CXX Travis overwrites the values,
## so instead we use C/CXX_COMPILER, then copy the values to CC/CXX
## here (after Travis has set CC/CXX).
- |
if [ -n "${C_COMPILER}" ]; then
export CC="${C_COMPILER}"
fi
if [ -n "${CXX_COMPILER}" ]; then
export CXX="${CXX_COMPILER}"
fi
script:
- mkdir "${TRAVIS_BUILD_DIR}/test/build" && cd "${TRAVIS_BUILD_DIR}/test/build"
- |
${CONFIGURE_WRAPPER} cmake .. \
-G "${CMAKE_GENERATOR}" \
-DBUILD_CPP_TESTS=${BUILD_CPP_TESTS} \
-DCMAKE_CROSSCOMPILING_EMULATOR="${TEST_WRAPPER}" \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DCMAKE_C_FLAGS="${ARCH_FLAGS} ${OPTIMIZATION_FLAGS} ${DIAGNOSTIC_FLAGS} ${COMPILER_FLAGS} ${CFLAGS}" \
-DCMAKE_CXX_FLAGS="${ARCH_FLAGS} ${OPTIMIZATION_FLAGS} ${DIAGNOSTIC_FLAGS} ${COMPILER_FLAGS} ${CXXFLAGS}" \
${CMAKE_ARGS} || (cat CMakeFiles/CMakeError.log && false) && \
${BUILD_WRAPPER} cmake --build .
- |
if [ "${RUN_TESTS}" = "true" ]; then
if [ "windows" != "${TRAVIS_OS_NAME}" ]; then
if command -v parallel; then
${TEST_WRAPPER} ./run-tests${EXECUTABLE_EXTENSION} --list | grep -oP '^/(x86|arm/neon)/([^\/]+)' | sort -u | xargs parallel ${TEST_WRAPPER} ./run-tests${EXECUTABLE_EXTENSION} ${TEST_ARG_SEPARATOR} {} ::: || exit 1
else
${TEST_WRAPPER} ./run-tests${EXECUTABLE_EXTENSION} || exit 1
fi
else
ctest --output-on-failure --interactive-debug-mode 0 -C Debug -V || exit 1
fi
fi
notifications:
email: false