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