]>
Commit | Line | Data |
---|---|---|
95310576 AB |
1 | # The current Travis default is a VM based 16.04 Xenial on GCE |
2 | # Additional builds with specific requirements for a full VM need to | |
3 | # be added as additional matrix: entries later on | |
321e6ea5 | 4 | os: linux |
e769905e | 5 | dist: focal |
fe863ab9 | 6 | language: c |
fe863ab9 AB |
7 | compiler: |
8 | - gcc | |
4bc629b2 | 9 | cache: |
5ef9c53c PMD |
10 | # There is one cache per branch and compiler version. |
11 | # characteristics of each job are used to identify the cache: | |
22a23195 | 12 | # - OS name (currently only linux) |
e769905e | 13 | # - OS distribution (for Linux, bionic or focal) |
5ef9c53c | 14 | # - Names and values of visible environment variables set in .travis.yml or Settings panel |
731cbb64 | 15 | timeout: 1200 |
4bc629b2 | 16 | ccache: true |
6e189d78 | 17 | pip: true |
c1073e44 PMD |
18 | directories: |
19 | - $HOME/avocado/data/cache | |
197be697 DB |
20 | |
21 | ||
692d162c AB |
22 | addons: |
23 | apt: | |
24 | packages: | |
32265288 | 25 | # Build dependencies |
692d162c AB |
26 | - libaio-dev |
27 | - libattr1-dev | |
28 | - libbrlapi-dev | |
29 | - libcap-ng-dev | |
e769905e | 30 | - libgcc-7-dev |
3c7a8b41 | 31 | - libgnutls28-dev |
692d162c AB |
32 | - libgtk-3-dev |
33 | - libiscsi-dev | |
34 | - liblttng-ust-dev | |
35 | - libncurses5-dev | |
d83414e1 | 36 | - libnfs-dev |
692d162c AB |
37 | - libnss3-dev |
38 | - libpixman-1-dev | |
3c7a8b41 | 39 | - libpng-dev |
692d162c | 40 | - librados-dev |
241e7955 TH |
41 | - libsdl2-dev |
42 | - libsdl2-image-dev | |
692d162c AB |
43 | - libseccomp-dev |
44 | - libspice-protocol-dev | |
45 | - libspice-server-dev | |
b10d49d7 | 46 | - libssh-dev |
692d162c AB |
47 | - liburcu-dev |
48 | - libusb-1.0-0-dev | |
7c1dd4d1 | 49 | - libvdeplug-dev |
95310576 | 50 | - libvte-2.91-dev |
3a678481 | 51 | - libzstd-dev |
345d7053 | 52 | - ninja-build |
692d162c AB |
53 | - sparse |
54 | - uuid-dev | |
0708e647 | 55 | - gcovr |
58a1e5b6 WSM |
56 | # Tests dependencies |
57 | - genisoimage | |
692d162c | 58 | |
197be697 | 59 | |
cb4c2536 PK |
60 | # The channel name "irc.oftc.net#qemu" is encrypted against qemu/qemu |
61 | # to prevent IRC notifications from forks. This was created using: | |
62 | # $ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu" | |
39d16d29 AB |
63 | notifications: |
64 | irc: | |
65 | channels: | |
cb4c2536 | 66 | - secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1KWKjZe9KDTZWppWRYVwAwQMzVeSOsbbU4tRoJ6Pp+3qhH1Z0eGYR9ZgKYAoTumDFgSAYRp4IscKS8jkoedOqM=" |
39d16d29 AB |
67 | on_success: change |
68 | on_failure: always | |
197be697 DB |
69 | |
70 | ||
fe863ab9 AB |
71 | env: |
72 | global: | |
bc4486fb PB |
73 | - SRC_DIR=".." |
74 | - BUILD_DIR="build" | |
570f3c77 | 75 | - BASE_CONFIG="--disable-docs --disable-tools" |
4f46afd9 | 76 | - TEST_BUILD_CMD="" |
05273a43 | 77 | - TEST_CMD="make check V=1" |
8c3daf97 | 78 | # This is broadly a list of "mainline" softmmu targets which have support across the major distros |
6e988880 | 79 | - MAIN_SOFTMMU_TARGETS="aarch64-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu" |
bcfbf0d5 PMD |
80 | - CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime" |
81 | - CCACHE_MAXSIZE=1G | |
2dbd39c2 | 82 | - G_MESSAGES_DEBUG=error |
bcfbf0d5 | 83 | |
197be697 | 84 | |
cb021cfe AB |
85 | git: |
86 | # we want to do this ourselves | |
87 | submodules: false | |
197be697 | 88 | |
b3165c87 AB |
89 | # Common first phase for all steps |
90 | before_install: | |
91 | - if command -v ccache ; then ccache --zero-stats ; fi | |
0a7c0ae0 AB |
92 | - export JOBS=$(($(getconf _NPROCESSORS_ONLN) + 1)) |
93 | - echo "=== Using ${JOBS} simultaneous jobs ===" | |
197be697 | 94 | |
b3165c87 | 95 | # Configure step - may be overridden |
eebf2940 | 96 | before_script: |
ebf2ff65 | 97 | - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} |
c47110d9 | 98 | - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log meson-logs/meson-log.txt && exit 1; } |
b3165c87 AB |
99 | |
100 | # Main build & test - rarely overridden - controlled by TEST_CMD | |
eebf2940 | 101 | script: |
0a7c0ae0 | 102 | - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$? |
4f46afd9 AB |
103 | - | |
104 | if [ "$BUILD_RC" -eq 0 ] && [ -n "$TEST_BUILD_CMD" ]; then | |
105 | ${TEST_BUILD_CMD} || BUILD_RC=$? | |
106 | else | |
107 | $(exit $BUILD_RC); | |
108 | fi | |
ec49faac AB |
109 | - | |
110 | if [ "$BUILD_RC" -eq 0 ] ; then | |
111 | ${TEST_CMD} ; | |
112 | else | |
113 | $(exit $BUILD_RC); | |
114 | fi | |
bcfbf0d5 | 115 | after_script: |
4f8bde52 | 116 | - df -h |
312995c2 | 117 | - if command -v ccache ; then ccache --show-stats ; fi |
197be697 DB |
118 | |
119 | ||
321e6ea5 | 120 | jobs: |
fe863ab9 | 121 | include: |
097aebd8 PMD |
122 | - name: "GCC static (user)" |
123 | env: | |
c3c1874a | 124 | - CONFIG="--disable-system --static" |
7d183c54 | 125 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
3e094234 | 126 | |
df2bb38e | 127 | # Just build tools and run minimal unit and softfloat checks |
7f808687 | 128 | - name: "GCC check-unit and check-softfloat" |
097aebd8 | 129 | env: |
df2bb38e AB |
130 | - BASE_CONFIG="--enable-tools" |
131 | - CONFIG="--disable-user --disable-system" | |
0a7c0ae0 | 132 | - TEST_CMD="make check-unit check-softfloat -j${JOBS}" |
7d183c54 PMD |
133 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
134 | ||
df2bb38e | 135 | |
138382c6 | 136 | # --enable-debug implies --enable-debug-tcg, also runs quite a bit slower |
097aebd8 PMD |
137 | - name: "GCC debug (main-softmmu)" |
138 | env: | |
138382c6 | 139 | - CONFIG="--enable-debug --target-list=${MAIN_SOFTMMU_TARGETS}" |
8fb90e3d | 140 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug" |
4e6e7df6 AB |
141 | |
142 | ||
138382c6 | 143 | # TCG debug can be run just on its own and is mostly agnostic to user/softmmu distinctions |
097aebd8 PMD |
144 | - name: "GCC debug (user)" |
145 | env: | |
4e6e7df6 | 146 | - CONFIG="--enable-debug-tcg --disable-system" |
19633df8 | 147 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg" |
3e094234 | 148 | |
2f6c2526 | 149 | # Module builds are mostly of interest to major distros |
097aebd8 PMD |
150 | - name: "GCC modules (main-softmmu)" |
151 | env: | |
8c3daf97 | 152 | - CONFIG="--enable-modules --target-list=${MAIN_SOFTMMU_TARGETS}" |
7d183c54 | 153 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
3e094234 DB |
154 | |
155 | ||
f3908ff7 AB |
156 | # Alternate coroutines implementations are only really of interest to KVM users |
157 | # However we can't test against KVM on Travis so we can only run unit tests | |
097aebd8 PMD |
158 | - name: "check-unit coroutine=ucontext" |
159 | env: | |
f3908ff7 | 160 | - CONFIG="--with-coroutine=ucontext --disable-tcg" |
0a7c0ae0 | 161 | - TEST_CMD="make check-unit -j${JOBS} V=1" |
3e094234 DB |
162 | |
163 | ||
097aebd8 PMD |
164 | - name: "check-unit coroutine=sigaltstack" |
165 | env: | |
f3908ff7 | 166 | - CONFIG="--with-coroutine=sigaltstack --disable-tcg" |
0a7c0ae0 | 167 | - TEST_CMD="make check-unit -j${JOBS} V=1" |
3e094234 DB |
168 | |
169 | ||
956d4506 | 170 | # Check we can build docs and tools (out of tree) |
204b30e2 AB |
171 | - name: "tools and docs (bionic)" |
172 | dist: bionic | |
097aebd8 | 173 | env: |
956d4506 | 174 | - BUILD_DIR="out-of-tree/build/dir" SRC_DIR="../../.." |
570f3c77 AB |
175 | - BASE_CONFIG="--enable-tools --enable-docs" |
176 | - CONFIG="--target-list=x86_64-softmmu,aarch64-linux-user" | |
7d183c54 | 177 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
570f3c77 AB |
178 | addons: |
179 | apt: | |
180 | packages: | |
345d7053 | 181 | - ninja-build |
68e5b85e | 182 | - python3-sphinx |
570f3c77 AB |
183 | - perl |
184 | ||
197be697 | 185 | |
ae6d692d | 186 | # Test with Clang for compile portability (Travis uses clang-5.0) |
097aebd8 PMD |
187 | - name: "Clang (user)" |
188 | env: | |
6f83cf88 | 189 | - CONFIG="--disable-system --host-cc=clang --cxx=clang++" |
e2bef011 | 190 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default" |
ae6d692d | 191 | compiler: clang |
197be697 DB |
192 | |
193 | ||
097aebd8 PMD |
194 | - name: "Clang (main-softmmu)" |
195 | env: | |
6f83cf88 TH |
196 | - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS} |
197 | --host-cc=clang --cxx=clang++" | |
b08c2ae3 | 198 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-sanitize" |
7831147e AB |
199 | compiler: clang |
200 | before_script: | |
bc4486fb | 201 | - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} |
c47110d9 | 202 | - ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-fsanitize=undefined -Werror" || { cat config.log meson-logs/meson-log.txt && exit 1; } |
7831147e AB |
203 | |
204 | ||
097aebd8 PMD |
205 | - name: "Clang (other-softmmu)" |
206 | env: | |
6f83cf88 TH |
207 | - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS} |
208 | --host-cc=clang --cxx=clang++" | |
e2bef011 | 209 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default" |
d9a6b013 | 210 | compiler: clang |
197be697 DB |
211 | |
212 | ||
6c933291 | 213 | # gprof/gcov are GCC features |
097aebd8 | 214 | - name: "GCC gprof/gcov" |
e769905e | 215 | dist: bionic |
345d7053 PB |
216 | addons: |
217 | apt: | |
218 | packages: | |
219 | - ninja-build | |
097aebd8 | 220 | env: |
e769905e TH |
221 | - CONFIG="--enable-gprof --enable-gcov --disable-libssh |
222 | --target-list=${MAIN_SOFTMMU_TARGETS}" | |
0708e647 AB |
223 | after_success: |
224 | - ${SRC_DIR}/scripts/travis/coverage-summary.sh | |
197be697 DB |
225 | |
226 | ||
20885b5b | 227 | # We manually include builds which we disable "make check" for |
097aebd8 PMD |
228 | - name: "GCC without-default-devices (softmmu)" |
229 | env: | |
386dc514 | 230 | - CONFIG="--without-default-devices --disable-user" |
7d183c54 | 231 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
20885b5b PB |
232 | - TEST_CMD="" |
233 | ||
234 | ||
f8309de9 | 235 | # We don't need to exercise every backend with every front-end |
097aebd8 PMD |
236 | - name: "GCC trace log,simple,syslog (user)" |
237 | env: | |
c21d7efc DB |
238 | - CONFIG="--enable-trace-backends=log,simple,syslog --disable-system" |
239 | - TEST_CMD="" | |
197be697 DB |
240 | |
241 | ||
097aebd8 PMD |
242 | - name: "GCC trace ftrace (x86_64-softmmu)" |
243 | env: | |
c21d7efc DB |
244 | - CONFIG="--enable-trace-backends=ftrace --target-list=x86_64-softmmu" |
245 | - TEST_CMD="" | |
197be697 DB |
246 | |
247 | ||
097aebd8 PMD |
248 | - name: "GCC trace ust (x86_64-softmmu)" |
249 | env: | |
c21d7efc DB |
250 | - CONFIG="--enable-trace-backends=ust --target-list=x86_64-softmmu" |
251 | - TEST_CMD="" | |
197be697 DB |
252 | |
253 | ||
32265288 | 254 | # Using newer GCC with sanitizers |
097aebd8 | 255 | - name: "GCC9 with sanitizers (softmmu)" |
e769905e | 256 | dist: bionic |
097aebd8 | 257 | addons: |
32265288 | 258 | apt: |
ac07ffc6 | 259 | update: true |
32265288 AB |
260 | sources: |
261 | # PPAs for newer toolchains | |
262 | - ubuntu-toolchain-r-test | |
263 | packages: | |
264 | # Extra toolchains | |
3998c25e AB |
265 | - gcc-9 |
266 | - g++-9 | |
32265288 AB |
267 | # Build dependencies |
268 | - libaio-dev | |
269 | - libattr1-dev | |
270 | - libbrlapi-dev | |
271 | - libcap-ng-dev | |
e769905e | 272 | - libgnutls28-dev |
32265288 AB |
273 | - libgtk-3-dev |
274 | - libiscsi-dev | |
275 | - liblttng-ust-dev | |
276 | - libnfs-dev | |
277 | - libncurses5-dev | |
278 | - libnss3-dev | |
279 | - libpixman-1-dev | |
e769905e | 280 | - libpng-dev |
32265288 | 281 | - librados-dev |
241e7955 TH |
282 | - libsdl2-dev |
283 | - libsdl2-image-dev | |
32265288 AB |
284 | - libseccomp-dev |
285 | - libspice-protocol-dev | |
286 | - libspice-server-dev | |
32265288 AB |
287 | - liburcu-dev |
288 | - libusb-1.0-0-dev | |
95310576 | 289 | - libvte-2.91-dev |
345d7053 | 290 | - ninja-build |
32265288 AB |
291 | - sparse |
292 | - uuid-dev | |
293 | language: generic | |
294 | compiler: none | |
295 | env: | |
3998c25e | 296 | - COMPILER_NAME=gcc CXX=g++-9 CC=gcc-9 |
e769905e | 297 | - CONFIG="--cc=gcc-9 --cxx=g++-9 --disable-linux-user" |
32265288 AB |
298 | - TEST_CMD="" |
299 | before_script: | |
bc4486fb | 300 | - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} |
c47110d9 | 301 | - ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-g3 -O0 -fsanitize=thread" || { cat config.log meson-logs/meson-log.txt && exit 1; } |
197be697 DB |
302 | |
303 | ||
dab3a7c0 | 304 | # Run check-tcg against linux-user |
097aebd8 PMD |
305 | - name: "GCC check-tcg (user)" |
306 | env: | |
2efabbe1 | 307 | - CONFIG="--disable-system --enable-debug-tcg" |
73217f3e | 308 | - TEST_BUILD_CMD="make build-tcg" |
4f46afd9 | 309 | - TEST_CMD="make check-tcg" |
19633df8 | 310 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg" |
7d183c54 | 311 | |
dab3a7c0 AB |
312 | |
313 | # Run check-tcg against softmmu targets | |
097aebd8 PMD |
314 | - name: "GCC check-tcg (some-softmmu)" |
315 | env: | |
2efabbe1 | 316 | - CONFIG="--enable-debug-tcg --target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu" |
c9331e9c | 317 | - TEST_BUILD_CMD="make build-tcg" |
4f46afd9 | 318 | - TEST_CMD="make check-tcg" |
19633df8 | 319 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg" |
61ac3dcc PMD |
320 | |
321 | ||
4fbddb5d | 322 | # Run check-tcg against softmmu targets (with plugins) |
097aebd8 PMD |
323 | - name: "GCC plugins check-tcg (some-softmmu)" |
324 | env: | |
19633df8 | 325 | - CONFIG="--enable-plugins --enable-debug-tcg --target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu" |
c9331e9c | 326 | - TEST_BUILD_CMD="make build-tcg" |
4f46afd9 | 327 | - TEST_CMD="make check-tcg" |
19633df8 | 328 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg" |
61ac3dcc | 329 | |
097aebd8 PMD |
330 | - name: "[aarch64] GCC check-tcg" |
331 | arch: arm64 | |
e769905e | 332 | dist: focal |
9c5941a9 TH |
333 | addons: |
334 | apt_packages: | |
335 | - libaio-dev | |
336 | - libattr1-dev | |
337 | - libbrlapi-dev | |
338 | - libcap-ng-dev | |
339 | - libgcrypt20-dev | |
340 | - libgnutls28-dev | |
341 | - libgtk-3-dev | |
342 | - libiscsi-dev | |
343 | - liblttng-ust-dev | |
344 | - libncurses5-dev | |
345 | - libnfs-dev | |
346 | - libnss3-dev | |
347 | - libpixman-1-dev | |
348 | - libpng-dev | |
349 | - librados-dev | |
350 | - libsdl2-dev | |
351 | - libseccomp-dev | |
352 | - liburcu-dev | |
353 | - libusb-1.0-0-dev | |
354 | - libvdeplug-dev | |
355 | - libvte-2.91-dev | |
345d7053 | 356 | - ninja-build |
58a1e5b6 WSM |
357 | # Tests dependencies |
358 | - genisoimage | |
9c5941a9 TH |
359 | env: |
360 | - TEST_CMD="make check check-tcg V=1" | |
361 | - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS}" | |
1de8e4c4 | 362 | - UNRELIABLE=true |
9c5941a9 | 363 | |
097aebd8 PMD |
364 | - name: "[ppc64] GCC check-tcg" |
365 | arch: ppc64le | |
e769905e | 366 | dist: focal |
9c5941a9 TH |
367 | addons: |
368 | apt_packages: | |
369 | - libaio-dev | |
370 | - libattr1-dev | |
371 | - libbrlapi-dev | |
372 | - libcap-ng-dev | |
373 | - libgcrypt20-dev | |
374 | - libgnutls28-dev | |
375 | - libgtk-3-dev | |
376 | - libiscsi-dev | |
377 | - liblttng-ust-dev | |
378 | - libncurses5-dev | |
379 | - libnfs-dev | |
380 | - libnss3-dev | |
381 | - libpixman-1-dev | |
382 | - libpng-dev | |
383 | - librados-dev | |
384 | - libsdl2-dev | |
385 | - libseccomp-dev | |
386 | - liburcu-dev | |
387 | - libusb-1.0-0-dev | |
388 | - libvdeplug-dev | |
389 | - libvte-2.91-dev | |
345d7053 | 390 | - ninja-build |
58a1e5b6 WSM |
391 | # Tests dependencies |
392 | - genisoimage | |
9c5941a9 TH |
393 | env: |
394 | - TEST_CMD="make check check-tcg V=1" | |
daee97f6 | 395 | - CONFIG="--disable-containers --target-list=ppc64-softmmu,ppc64le-linux-user" |
9c5941a9 | 396 | |
097aebd8 PMD |
397 | - name: "[s390x] GCC check-tcg" |
398 | arch: s390x | |
9c5941a9 TH |
399 | dist: bionic |
400 | addons: | |
401 | apt_packages: | |
402 | - libaio-dev | |
403 | - libattr1-dev | |
404 | - libbrlapi-dev | |
405 | - libcap-ng-dev | |
406 | - libgcrypt20-dev | |
407 | - libgnutls28-dev | |
408 | - libgtk-3-dev | |
409 | - libiscsi-dev | |
410 | - liblttng-ust-dev | |
411 | - libncurses5-dev | |
412 | - libnfs-dev | |
413 | - libnss3-dev | |
414 | - libpixman-1-dev | |
415 | - libpng-dev | |
416 | - librados-dev | |
417 | - libsdl2-dev | |
418 | - libseccomp-dev | |
419 | - liburcu-dev | |
420 | - libusb-1.0-0-dev | |
421 | - libvdeplug-dev | |
422 | - libvte-2.91-dev | |
345d7053 | 423 | - ninja-build |
58a1e5b6 WSM |
424 | # Tests dependencies |
425 | - genisoimage | |
9c5941a9 TH |
426 | env: |
427 | - TEST_CMD="make check check-tcg V=1" | |
428 | - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS},s390x-linux-user" | |
1de8e4c4 | 429 | - UNRELIABLE=true |
31c8cc4f | 430 | script: |
31c8cc4f TH |
431 | - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$? |
432 | - | | |
433 | if [ "$BUILD_RC" -eq 0 ] ; then | |
434 | mv pc-bios/s390-ccw/*.img pc-bios/ ; | |
435 | ${TEST_CMD} ; | |
436 | else | |
437 | $(exit $BUILD_RC); | |
438 | fi | |
61ac3dcc | 439 | |
100a5efb TH |
440 | - name: "[s390x] GCC (other-softmmu)" |
441 | arch: s390x | |
442 | dist: bionic | |
443 | addons: | |
444 | apt_packages: | |
445 | - libaio-dev | |
446 | - libattr1-dev | |
447 | - libcap-ng-dev | |
448 | - libgnutls28-dev | |
449 | - libiscsi-dev | |
450 | - liblttng-ust-dev | |
451 | - liblzo2-dev | |
452 | - libncurses-dev | |
453 | - libnfs-dev | |
454 | - libnss3-dev | |
455 | - libpixman-1-dev | |
456 | - libsdl2-dev | |
457 | - libsdl2-image-dev | |
458 | - libseccomp-dev | |
459 | - libsnappy-dev | |
460 | - libzstd-dev | |
461 | - nettle-dev | |
462 | - xfslibs-dev | |
345d7053 | 463 | - ninja-build |
100a5efb TH |
464 | # Tests dependencies |
465 | - genisoimage | |
466 | env: | |
467 | - CONFIG="--disable-containers --audio-drv-list=sdl --disable-user | |
468 | --target-list-exclude=${MAIN_SOFTMMU_TARGETS}" | |
469 | ||
470 | - name: "[s390x] GCC (user)" | |
471 | arch: s390x | |
472 | dist: bionic | |
473 | addons: | |
474 | apt_packages: | |
475 | - libgcrypt20-dev | |
476 | - libgnutls28-dev | |
345d7053 | 477 | - ninja-build |
100a5efb TH |
478 | env: |
479 | - CONFIG="--disable-containers --disable-system" | |
480 | ||
aae8b87e | 481 | - name: "[s390x] Clang (disable-tcg)" |
41e1f0e2 PMD |
482 | arch: s390x |
483 | dist: bionic | |
aae8b87e | 484 | compiler: clang |
41e1f0e2 PMD |
485 | addons: |
486 | apt_packages: | |
487 | - libaio-dev | |
488 | - libattr1-dev | |
489 | - libbrlapi-dev | |
490 | - libcap-ng-dev | |
491 | - libgcrypt20-dev | |
492 | - libgnutls28-dev | |
493 | - libgtk-3-dev | |
494 | - libiscsi-dev | |
495 | - liblttng-ust-dev | |
496 | - libncurses5-dev | |
497 | - libnfs-dev | |
498 | - libnss3-dev | |
499 | - libpixman-1-dev | |
500 | - libpng-dev | |
501 | - librados-dev | |
502 | - libsdl2-dev | |
503 | - libseccomp-dev | |
504 | - liburcu-dev | |
505 | - libusb-1.0-0-dev | |
506 | - libvdeplug-dev | |
507 | - libvte-2.91-dev | |
345d7053 | 508 | - ninja-build |
41e1f0e2 PMD |
509 | env: |
510 | - TEST_CMD="make check-unit" | |
aae8b87e TH |
511 | - CONFIG="--disable-containers --disable-tcg --enable-kvm |
512 | --disable-tools --host-cc=clang --cxx=clang++" | |
1de8e4c4 | 513 | - UNRELIABLE=true |
41e1f0e2 | 514 | |
61ac3dcc PMD |
515 | # Release builds |
516 | # The make-release script expect a QEMU version, so our tag must start with a 'v'. | |
517 | # This is the case when release candidate tags are created. | |
097aebd8 PMD |
518 | - name: "Release tarball" |
519 | if: tag IS present AND tag =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/ | |
61ac3dcc PMD |
520 | env: |
521 | # We want to build from the release tarball | |
522 | - BUILD_DIR="release/build/dir" SRC_DIR="../../.." | |
523 | - BASE_CONFIG="--prefix=$PWD/dist" | |
524 | - CONFIG="--target-list=x86_64-softmmu,aarch64-softmmu,armeb-linux-user,ppc-linux-user" | |
0a7c0ae0 | 525 | - TEST_CMD="make install -j${JOBS}" |
61ac3dcc PMD |
526 | - QEMU_VERSION="${TRAVIS_TAG:1}" |
527 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" | |
61ac3dcc PMD |
528 | script: |
529 | - make -C ${SRC_DIR} qemu-${QEMU_VERSION}.tar.bz2 | |
530 | - ls -l ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2 | |
531 | - tar -xf ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2 && cd qemu-${QEMU_VERSION} | |
bc4486fb | 532 | - mkdir -p release-build && cd release-build |
c47110d9 | 533 | - ../configure ${BASE_CONFIG} ${CONFIG} || { cat config.log meson-logs/meson-log.txt && exit 1; } |
61ac3dcc | 534 | - make install |
1de8e4c4 AB |
535 | allow_failures: |
536 | - env: UNRELIABLE=true |