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