]>
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 | |
4 | dist: xenial | |
fe863ab9 | 5 | language: c |
fe863ab9 AB |
6 | compiler: |
7 | - gcc | |
4bc629b2 | 8 | cache: |
5ef9c53c PMD |
9 | # There is one cache per branch and compiler version. |
10 | # characteristics of each job are used to identify the cache: | |
11 | # - OS name (currently, linux, osx, or windows) | |
12 | # - OS distribution (for Linux, xenial, trusty, or precise) | |
13 | # - macOS image name (e.g., xcode7.2) | |
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 | |
7524a39d | 30 | - libgcc-4.8-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 |
692d162c AB |
51 | - sparse |
52 | - uuid-dev | |
0708e647 | 53 | - gcovr |
58a1e5b6 WSM |
54 | # Tests dependencies |
55 | - genisoimage | |
692d162c | 56 | |
197be697 | 57 | |
cb4c2536 PK |
58 | # The channel name "irc.oftc.net#qemu" is encrypted against qemu/qemu |
59 | # to prevent IRC notifications from forks. This was created using: | |
60 | # $ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu" | |
39d16d29 AB |
61 | notifications: |
62 | irc: | |
63 | channels: | |
cb4c2536 | 64 | - secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1KWKjZe9KDTZWppWRYVwAwQMzVeSOsbbU4tRoJ6Pp+3qhH1Z0eGYR9ZgKYAoTumDFgSAYRp4IscKS8jkoedOqM=" |
39d16d29 AB |
65 | on_success: change |
66 | on_failure: always | |
197be697 DB |
67 | |
68 | ||
fe863ab9 AB |
69 | env: |
70 | global: | |
bc4486fb PB |
71 | - SRC_DIR=".." |
72 | - BUILD_DIR="build" | |
570f3c77 | 73 | - BASE_CONFIG="--disable-docs --disable-tools" |
05273a43 | 74 | - TEST_CMD="make check V=1" |
8c3daf97 | 75 | # This is broadly a list of "mainline" softmmu targets which have support across the major distros |
6e988880 | 76 | - MAIN_SOFTMMU_TARGETS="aarch64-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu" |
bcfbf0d5 PMD |
77 | - CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime" |
78 | - CCACHE_MAXSIZE=1G | |
79 | ||
197be697 | 80 | |
cb021cfe AB |
81 | git: |
82 | # we want to do this ourselves | |
83 | submodules: false | |
197be697 | 84 | |
b3165c87 AB |
85 | # Common first phase for all steps |
86 | before_install: | |
87 | - if command -v ccache ; then ccache --zero-stats ; fi | |
0a7c0ae0 AB |
88 | - export JOBS=$(($(getconf _NPROCESSORS_ONLN) + 1)) |
89 | - echo "=== Using ${JOBS} simultaneous jobs ===" | |
197be697 | 90 | |
b3165c87 | 91 | # Configure step - may be overridden |
eebf2940 | 92 | before_script: |
ebf2ff65 | 93 | - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} |
570f3c77 | 94 | - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; } |
b3165c87 AB |
95 | |
96 | # Main build & test - rarely overridden - controlled by TEST_CMD | |
eebf2940 | 97 | script: |
0a7c0ae0 | 98 | - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$? |
3b353883 | 99 | - if [ "$BUILD_RC" -eq 0 ] ; then travis_retry ${TEST_CMD} ; else $(exit $BUILD_RC); fi |
bcfbf0d5 | 100 | after_script: |
312995c2 | 101 | - if command -v ccache ; then ccache --show-stats ; fi |
197be697 DB |
102 | |
103 | ||
fe863ab9 | 104 | matrix: |
fe863ab9 | 105 | include: |
097aebd8 PMD |
106 | - name: "GCC static (user)" |
107 | env: | |
c3c1874a | 108 | - CONFIG="--disable-system --static" |
7d183c54 | 109 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
3e094234 DB |
110 | |
111 | ||
8c3daf97 | 112 | # we split the system builds as it takes a while to build them all |
097aebd8 PMD |
113 | - name: "GCC (main-softmmu)" |
114 | env: | |
8c3daf97 | 115 | - CONFIG="--disable-user --target-list=${MAIN_SOFTMMU_TARGETS}" |
7d183c54 | 116 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
8c3daf97 AB |
117 | |
118 | ||
097aebd8 PMD |
119 | - name: "GCC (other-softmmu)" |
120 | env: | |
121 | - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}" | |
7d183c54 | 122 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
3e094234 DB |
123 | |
124 | ||
df2bb38e | 125 | # Just build tools and run minimal unit and softfloat checks |
097aebd8 PMD |
126 | - name: "GCC check-softfloat (user)" |
127 | env: | |
df2bb38e AB |
128 | - BASE_CONFIG="--enable-tools" |
129 | - CONFIG="--disable-user --disable-system" | |
0a7c0ae0 | 130 | - TEST_CMD="make check-unit check-softfloat -j${JOBS}" |
7d183c54 PMD |
131 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
132 | ||
df2bb38e | 133 | |
138382c6 | 134 | # --enable-debug implies --enable-debug-tcg, also runs quite a bit slower |
097aebd8 PMD |
135 | - name: "GCC debug (main-softmmu)" |
136 | env: | |
138382c6 | 137 | - CONFIG="--enable-debug --target-list=${MAIN_SOFTMMU_TARGETS}" |
8fb90e3d | 138 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug" |
4e6e7df6 AB |
139 | |
140 | ||
138382c6 | 141 | # TCG debug can be run just on its own and is mostly agnostic to user/softmmu distinctions |
097aebd8 PMD |
142 | - name: "GCC debug (user)" |
143 | env: | |
4e6e7df6 | 144 | - CONFIG="--enable-debug-tcg --disable-system" |
19633df8 | 145 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg" |
3e094234 DB |
146 | |
147 | ||
097aebd8 PMD |
148 | - name: "GCC some libs disabled (main-softmmu)" |
149 | env: | |
aec2927d | 150 | - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-libusb --disable-replication --target-list=${MAIN_SOFTMMU_TARGETS}" |
3e094234 DB |
151 | |
152 | ||
2f6c2526 | 153 | # Module builds are mostly of interest to major distros |
097aebd8 PMD |
154 | - name: "GCC modules (main-softmmu)" |
155 | env: | |
8c3daf97 | 156 | - CONFIG="--enable-modules --target-list=${MAIN_SOFTMMU_TARGETS}" |
7d183c54 | 157 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
3e094234 DB |
158 | |
159 | ||
f3908ff7 AB |
160 | # Alternate coroutines implementations are only really of interest to KVM users |
161 | # However we can't test against KVM on Travis so we can only run unit tests | |
097aebd8 PMD |
162 | - name: "check-unit coroutine=ucontext" |
163 | env: | |
f3908ff7 | 164 | - CONFIG="--with-coroutine=ucontext --disable-tcg" |
0a7c0ae0 | 165 | - TEST_CMD="make check-unit -j${JOBS} V=1" |
3e094234 DB |
166 | |
167 | ||
097aebd8 PMD |
168 | - name: "check-unit coroutine=sigaltstack" |
169 | env: | |
f3908ff7 | 170 | - CONFIG="--with-coroutine=sigaltstack --disable-tcg" |
0a7c0ae0 | 171 | - TEST_CMD="make check-unit -j${JOBS} V=1" |
3e094234 DB |
172 | |
173 | ||
956d4506 | 174 | # Check we can build docs and tools (out of tree) |
204b30e2 AB |
175 | - name: "tools and docs (bionic)" |
176 | dist: bionic | |
097aebd8 | 177 | env: |
956d4506 | 178 | - BUILD_DIR="out-of-tree/build/dir" SRC_DIR="../../.." |
570f3c77 AB |
179 | - BASE_CONFIG="--enable-tools --enable-docs" |
180 | - CONFIG="--target-list=x86_64-softmmu,aarch64-linux-user" | |
7d183c54 | 181 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
570f3c77 AB |
182 | addons: |
183 | apt: | |
184 | packages: | |
185 | - python-sphinx | |
186 | - texinfo | |
187 | - perl | |
188 | ||
197be697 | 189 | |
ae6d692d | 190 | # Test with Clang for compile portability (Travis uses clang-5.0) |
097aebd8 PMD |
191 | - name: "Clang (user)" |
192 | env: | |
c21d7efc | 193 | - CONFIG="--disable-system" |
e2bef011 | 194 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default" |
ae6d692d | 195 | compiler: clang |
197be697 DB |
196 | |
197 | ||
097aebd8 PMD |
198 | - name: "Clang (main-softmmu)" |
199 | env: | |
7831147e | 200 | - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS} " |
b08c2ae3 | 201 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-sanitize" |
7831147e AB |
202 | compiler: clang |
203 | before_script: | |
bc4486fb PB |
204 | - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} |
205 | - ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-fsanitize=undefined -Werror" || { cat config.log && exit 1; } | |
7831147e AB |
206 | |
207 | ||
097aebd8 PMD |
208 | - name: "Clang (other-softmmu)" |
209 | env: | |
8c3daf97 | 210 | - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}" |
e2bef011 | 211 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default" |
d9a6b013 | 212 | compiler: clang |
197be697 DB |
213 | |
214 | ||
6c933291 | 215 | # gprof/gcov are GCC features |
097aebd8 PMD |
216 | - name: "GCC gprof/gcov" |
217 | env: | |
8c3daf97 | 218 | - CONFIG="--enable-gprof --enable-gcov --disable-pie --target-list=${MAIN_SOFTMMU_TARGETS}" |
0708e647 AB |
219 | after_success: |
220 | - ${SRC_DIR}/scripts/travis/coverage-summary.sh | |
197be697 DB |
221 | |
222 | ||
20885b5b | 223 | # We manually include builds which we disable "make check" for |
097aebd8 PMD |
224 | - name: "GCC without-default-devices (softmmu)" |
225 | env: | |
386dc514 | 226 | - CONFIG="--without-default-devices --disable-user" |
7d183c54 | 227 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
20885b5b PB |
228 | - TEST_CMD="" |
229 | ||
230 | ||
3edaa995 | 231 | # Check the TCG interpreter (TCI) |
097aebd8 PMD |
232 | - name: "GCC TCI" |
233 | env: | |
3edaa995 TH |
234 | - CONFIG="--enable-debug-tcg --enable-tcg-interpreter --disable-kvm --disable-containers |
235 | --target-list=alpha-softmmu,arm-softmmu,hppa-softmmu,m68k-softmmu,microblaze-softmmu,moxie-softmmu,ppc-softmmu,s390x-softmmu,x86_64-softmmu" | |
236 | - TEST_CMD="make check-qtest check-tcg V=1" | |
197be697 DB |
237 | |
238 | ||
f8309de9 | 239 | # We don't need to exercise every backend with every front-end |
097aebd8 PMD |
240 | - name: "GCC trace log,simple,syslog (user)" |
241 | env: | |
c21d7efc DB |
242 | - CONFIG="--enable-trace-backends=log,simple,syslog --disable-system" |
243 | - TEST_CMD="" | |
197be697 DB |
244 | |
245 | ||
097aebd8 PMD |
246 | - name: "GCC trace ftrace (x86_64-softmmu)" |
247 | env: | |
c21d7efc DB |
248 | - CONFIG="--enable-trace-backends=ftrace --target-list=x86_64-softmmu" |
249 | - TEST_CMD="" | |
197be697 DB |
250 | |
251 | ||
097aebd8 PMD |
252 | - name: "GCC trace ust (x86_64-softmmu)" |
253 | env: | |
c21d7efc DB |
254 | - CONFIG="--enable-trace-backends=ust --target-list=x86_64-softmmu" |
255 | - TEST_CMD="" | |
197be697 DB |
256 | |
257 | ||
fb224688 | 258 | # MacOSX builds - cirrus.yml also tests some MacOS builds including latest Xcode |
197be697 | 259 | |
097aebd8 PMD |
260 | - name: "OSX Xcode 10.3" |
261 | env: | |
cd7507cb PMD |
262 | - CONFIG="--target-list=i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu,x86_64-softmmu" |
263 | os: osx | |
0cb3e7ba | 264 | osx_image: xcode10.3 |
cd7507cb | 265 | compiler: clang |
289c8e59 AB |
266 | addons: |
267 | homebrew: | |
268 | packages: | |
269 | - ccache | |
270 | - glib | |
271 | - pixman | |
272 | - gnu-sed | |
273 | - python | |
274 | update: true | |
6e3bd8a0 | 275 | before_script: |
289c8e59 | 276 | - brew link --overwrite python |
6e3bd8a0 | 277 | - export PATH="/usr/local/opt/ccache/libexec:$PATH" |
6e3bd8a0 AB |
278 | - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} |
279 | - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; } | |
cd7507cb PMD |
280 | |
281 | ||
ae6d692d | 282 | # Python builds |
097aebd8 PMD |
283 | - name: "GCC Python 3.5 (x86_64-softmmu)" |
284 | env: | |
c21d7efc | 285 | - CONFIG="--target-list=x86_64-softmmu" |
7d183c54 | 286 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
53fefde4 | 287 | language: python |
8e73a3c5 | 288 | python: |
49233804 | 289 | - "3.5" |
197be697 DB |
290 | |
291 | ||
097aebd8 PMD |
292 | - name: "GCC Python 3.6 (x86_64-softmmu)" |
293 | env: | |
c21d7efc | 294 | - CONFIG="--target-list=x86_64-softmmu" |
7d183c54 | 295 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
53fefde4 | 296 | language: python |
8e73a3c5 DB |
297 | python: |
298 | - "3.6" | |
197be697 DB |
299 | |
300 | ||
aa983ff6 | 301 | # Acceptance (Functional) tests |
097aebd8 PMD |
302 | - name: "GCC check-acceptance" |
303 | env: | |
5311cb12 | 304 | - CONFIG="--target-list=x86_64-softmmu,mips-softmmu,mips64el-softmmu,aarch64-softmmu,arm-softmmu,s390x-softmmu,alpha-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu,sparc-softmmu" |
0b98c20a | 305 | - TEST_CMD="make check-acceptance" |
67892c95 WSM |
306 | after_script: |
307 | - python3 -c 'import json; r = json.load(open("tests/results/latest/results.json")); [print(t["logfile"]) for t in r["tests"] if t["status"] not in ("PASS", "SKIP")]' | xargs cat | |
aa983ff6 CR |
308 | addons: |
309 | apt: | |
310 | packages: | |
25311649 | 311 | - python3-pil |
aa983ff6 | 312 | - python3-pip |
95310576 | 313 | - python3.5-venv |
25311649 PMD |
314 | - tesseract-ocr |
315 | - tesseract-ocr-eng | |
316 | ||
317 | ||
32265288 | 318 | # Using newer GCC with sanitizers |
097aebd8 PMD |
319 | - name: "GCC9 with sanitizers (softmmu)" |
320 | addons: | |
32265288 | 321 | apt: |
ac07ffc6 | 322 | update: true |
32265288 AB |
323 | sources: |
324 | # PPAs for newer toolchains | |
325 | - ubuntu-toolchain-r-test | |
326 | packages: | |
327 | # Extra toolchains | |
3998c25e AB |
328 | - gcc-9 |
329 | - g++-9 | |
32265288 AB |
330 | # Build dependencies |
331 | - libaio-dev | |
332 | - libattr1-dev | |
333 | - libbrlapi-dev | |
334 | - libcap-ng-dev | |
335 | - libgnutls-dev | |
336 | - libgtk-3-dev | |
337 | - libiscsi-dev | |
338 | - liblttng-ust-dev | |
339 | - libnfs-dev | |
340 | - libncurses5-dev | |
341 | - libnss3-dev | |
342 | - libpixman-1-dev | |
343 | - libpng12-dev | |
344 | - librados-dev | |
241e7955 TH |
345 | - libsdl2-dev |
346 | - libsdl2-image-dev | |
32265288 AB |
347 | - libseccomp-dev |
348 | - libspice-protocol-dev | |
349 | - libspice-server-dev | |
b10d49d7 | 350 | - libssh-dev |
32265288 AB |
351 | - liburcu-dev |
352 | - libusb-1.0-0-dev | |
95310576 | 353 | - libvte-2.91-dev |
32265288 AB |
354 | - sparse |
355 | - uuid-dev | |
356 | language: generic | |
357 | compiler: none | |
358 | env: | |
3998c25e AB |
359 | - COMPILER_NAME=gcc CXX=g++-9 CC=gcc-9 |
360 | - CONFIG="--cc=gcc-9 --cxx=g++-9 --disable-pie --disable-linux-user" | |
32265288 AB |
361 | - TEST_CMD="" |
362 | before_script: | |
bc4486fb | 363 | - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} |
db5adeaa | 364 | - ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-g3 -O0 -Wno-error=stringop-truncation -fsanitize=thread" --extra-ldflags="-fuse-ld=gold" || { cat config.log && exit 1; } |
197be697 DB |
365 | |
366 | ||
dab3a7c0 | 367 | # Run check-tcg against linux-user |
097aebd8 PMD |
368 | - name: "GCC check-tcg (user)" |
369 | env: | |
2efabbe1 | 370 | - CONFIG="--disable-system --enable-debug-tcg" |
0a7c0ae0 | 371 | - TEST_CMD="make -j${JOBS} check-tcg V=1" |
19633df8 | 372 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg" |
7d183c54 | 373 | |
dab3a7c0 | 374 | |
4fbddb5d AB |
375 | # Run check-tcg against linux-user (with plugins) |
376 | # we skip sparc64-linux-user until it has been fixed somewhat | |
097aebd8 PMD |
377 | - name: "GCC plugins check-tcg (user)" |
378 | env: | |
19633df8 | 379 | - CONFIG="--disable-system --enable-plugins --enable-debug-tcg --target-list-exclude=sparc64-linux-user" |
0a7c0ae0 | 380 | - TEST_CMD="make -j${JOBS} check-tcg V=1" |
19633df8 | 381 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg" |
7d183c54 | 382 | |
dab3a7c0 AB |
383 | |
384 | # Run check-tcg against softmmu targets | |
097aebd8 PMD |
385 | - name: "GCC check-tcg (some-softmmu)" |
386 | env: | |
2efabbe1 | 387 | - CONFIG="--enable-debug-tcg --target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu" |
0a7c0ae0 | 388 | - TEST_CMD="make -j${JOBS} check-tcg V=1" |
19633df8 | 389 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg" |
61ac3dcc PMD |
390 | |
391 | ||
4fbddb5d | 392 | # Run check-tcg against softmmu targets (with plugins) |
097aebd8 PMD |
393 | - name: "GCC plugins check-tcg (some-softmmu)" |
394 | env: | |
19633df8 | 395 | - CONFIG="--enable-plugins --enable-debug-tcg --target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu" |
0a7c0ae0 | 396 | - TEST_CMD="make -j${JOBS} check-tcg V=1" |
19633df8 | 397 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg" |
61ac3dcc | 398 | |
097aebd8 PMD |
399 | - name: "[aarch64] GCC check-tcg" |
400 | arch: arm64 | |
9c5941a9 TH |
401 | dist: xenial |
402 | addons: | |
403 | apt_packages: | |
404 | - libaio-dev | |
405 | - libattr1-dev | |
406 | - libbrlapi-dev | |
407 | - libcap-ng-dev | |
408 | - libgcrypt20-dev | |
409 | - libgnutls28-dev | |
410 | - libgtk-3-dev | |
411 | - libiscsi-dev | |
412 | - liblttng-ust-dev | |
413 | - libncurses5-dev | |
414 | - libnfs-dev | |
415 | - libnss3-dev | |
416 | - libpixman-1-dev | |
417 | - libpng-dev | |
418 | - librados-dev | |
419 | - libsdl2-dev | |
420 | - libseccomp-dev | |
421 | - liburcu-dev | |
422 | - libusb-1.0-0-dev | |
423 | - libvdeplug-dev | |
424 | - libvte-2.91-dev | |
58a1e5b6 WSM |
425 | # Tests dependencies |
426 | - genisoimage | |
9c5941a9 TH |
427 | env: |
428 | - TEST_CMD="make check check-tcg V=1" | |
429 | - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS}" | |
430 | ||
097aebd8 PMD |
431 | - name: "[ppc64] GCC check-tcg" |
432 | arch: ppc64le | |
9c5941a9 TH |
433 | dist: xenial |
434 | addons: | |
435 | apt_packages: | |
436 | - libaio-dev | |
437 | - libattr1-dev | |
438 | - libbrlapi-dev | |
439 | - libcap-ng-dev | |
440 | - libgcrypt20-dev | |
441 | - libgnutls28-dev | |
442 | - libgtk-3-dev | |
443 | - libiscsi-dev | |
444 | - liblttng-ust-dev | |
445 | - libncurses5-dev | |
446 | - libnfs-dev | |
447 | - libnss3-dev | |
448 | - libpixman-1-dev | |
449 | - libpng-dev | |
450 | - librados-dev | |
451 | - libsdl2-dev | |
452 | - libseccomp-dev | |
453 | - liburcu-dev | |
454 | - libusb-1.0-0-dev | |
455 | - libvdeplug-dev | |
456 | - libvte-2.91-dev | |
58a1e5b6 WSM |
457 | # Tests dependencies |
458 | - genisoimage | |
9c5941a9 TH |
459 | env: |
460 | - TEST_CMD="make check check-tcg V=1" | |
461 | - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS},ppc64le-linux-user" | |
462 | ||
097aebd8 PMD |
463 | - name: "[s390x] GCC check-tcg" |
464 | arch: s390x | |
9c5941a9 TH |
465 | dist: bionic |
466 | addons: | |
467 | apt_packages: | |
468 | - libaio-dev | |
469 | - libattr1-dev | |
470 | - libbrlapi-dev | |
471 | - libcap-ng-dev | |
472 | - libgcrypt20-dev | |
473 | - libgnutls28-dev | |
474 | - libgtk-3-dev | |
475 | - libiscsi-dev | |
476 | - liblttng-ust-dev | |
477 | - libncurses5-dev | |
478 | - libnfs-dev | |
479 | - libnss3-dev | |
480 | - libpixman-1-dev | |
481 | - libpng-dev | |
482 | - librados-dev | |
483 | - libsdl2-dev | |
484 | - libseccomp-dev | |
485 | - liburcu-dev | |
486 | - libusb-1.0-0-dev | |
487 | - libvdeplug-dev | |
488 | - libvte-2.91-dev | |
58a1e5b6 WSM |
489 | # Tests dependencies |
490 | - genisoimage | |
9c5941a9 TH |
491 | env: |
492 | - TEST_CMD="make check check-tcg V=1" | |
493 | - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS},s390x-linux-user" | |
61ac3dcc PMD |
494 | |
495 | # Release builds | |
496 | # The make-release script expect a QEMU version, so our tag must start with a 'v'. | |
497 | # This is the case when release candidate tags are created. | |
097aebd8 PMD |
498 | - name: "Release tarball" |
499 | if: tag IS present AND tag =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/ | |
61ac3dcc PMD |
500 | env: |
501 | # We want to build from the release tarball | |
502 | - BUILD_DIR="release/build/dir" SRC_DIR="../../.." | |
503 | - BASE_CONFIG="--prefix=$PWD/dist" | |
504 | - CONFIG="--target-list=x86_64-softmmu,aarch64-softmmu,armeb-linux-user,ppc-linux-user" | |
0a7c0ae0 | 505 | - TEST_CMD="make install -j${JOBS}" |
61ac3dcc PMD |
506 | - QEMU_VERSION="${TRAVIS_TAG:1}" |
507 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" | |
61ac3dcc PMD |
508 | script: |
509 | - make -C ${SRC_DIR} qemu-${QEMU_VERSION}.tar.bz2 | |
510 | - ls -l ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2 | |
511 | - tar -xf ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2 && cd qemu-${QEMU_VERSION} | |
bc4486fb PB |
512 | - mkdir -p release-build && cd release-build |
513 | - ../configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; } | |
61ac3dcc | 514 | - make install |