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