forked from simd-everywhere/simde
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
248 lines (228 loc) · 7.22 KB
/
.travis.yml
File metadata and controls
248 lines (228 loc) · 7.22 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
language: c
dist: bionic
cache: ccache
# 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-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
# compiler: gcc-10
# env:
# - C_COMPILER=gcc-10
# - CXX_COMPILER=g++-10
# - ARCH_FLAGS="-march=armv8-a+simd+crc"
# - OPTIMIZATION_FLAGS="-O1"
# 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: "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: "MIPS Loongson-MMI (Compile Only)"
# if: branch != master OR type == pull_request
# arch: amd64
# compiler: mips64el-linux-gnuabi64-gcc
# env:
# - C_COMPILER=mips64el-linux-gnuabi64-gcc
# - CXX_COMPILER=mips64el-linux-gnuabi64-g++
# - ARCH_FLAGS="-march=loongson3a"
# - RUN_TESTS=false
# addons:
# apt:
# packages:
# - gcc-mips64el-linux-gnuabi64
# - g++-mips64el-linux-gnuabi64
# # These next two ere largely to detect missing AVX-512 functions
# # since Travis is the only CI right now with AVX-512 hardware and SDE
# # is too slow.
# - name: "gcc-6"
# dist: bionic
# if: branch != master OR type == pull_request
# env:
# - C_COMPILER=gcc-6
# - CXX_COMPILER=g++-6
# addons:
# apt:
# packages:
# - gcc-6
# - g++-6
# - name: "clang-3.5"
# dist: xenial
# if: branch != master OR type == pull_request
# env:
# - C_COMPILER=clang-3.5
# - CXX_COMPILER=clang++-3.5
# addons:
# apt:
# packages:
# - clang-3.5
# # - 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: 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: s390x
# if: branch != master OR type == pull_request
# arch: s390x
##
## 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