]> git.proxmox.com Git - mirror_qemu.git/blob - .travis.yml
travis.yml: (Re-)move the --enable-debug jobs
[mirror_qemu.git] / .travis.yml
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 os: linux
5 dist: focal
6 language: c
7 compiler:
8 - gcc
9 cache:
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 only linux)
13 # - OS distribution (for Linux, bionic or focal)
14 # - Names and values of visible environment variables set in .travis.yml or Settings panel
15 timeout: 1200
16 ccache: true
17 pip: true
18 directories:
19 - $HOME/avocado/data/cache
20
21
22 addons:
23 apt:
24 packages:
25 # Build dependencies
26 - libaio-dev
27 - libattr1-dev
28 - libbrlapi-dev
29 - libcap-ng-dev
30 - libgcc-7-dev
31 - libgnutls28-dev
32 - libgtk-3-dev
33 - libiscsi-dev
34 - liblttng-ust-dev
35 - libncurses5-dev
36 - libnfs-dev
37 - libnss3-dev
38 - libpixman-1-dev
39 - libpng-dev
40 - librados-dev
41 - libsdl2-dev
42 - libsdl2-image-dev
43 - libseccomp-dev
44 - libspice-protocol-dev
45 - libspice-server-dev
46 - libssh-dev
47 - liburcu-dev
48 - libusb-1.0-0-dev
49 - libvdeplug-dev
50 - libvte-2.91-dev
51 - libzstd-dev
52 - ninja-build
53 - sparse
54 - uuid-dev
55 # Tests dependencies
56 - genisoimage
57
58
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"
62 notifications:
63 irc:
64 channels:
65 - secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1KWKjZe9KDTZWppWRYVwAwQMzVeSOsbbU4tRoJ6Pp+3qhH1Z0eGYR9ZgKYAoTumDFgSAYRp4IscKS8jkoedOqM="
66 on_success: change
67 on_failure: always
68
69
70 env:
71 global:
72 - SRC_DIR=".."
73 - BUILD_DIR="build"
74 - BASE_CONFIG="--disable-docs --disable-tools"
75 - TEST_BUILD_CMD=""
76 - TEST_CMD="make check V=1"
77 # This is broadly a list of "mainline" softmmu targets which have support across the major distros
78 - MAIN_SOFTMMU_TARGETS="aarch64-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
79 - CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime"
80 - CCACHE_MAXSIZE=1G
81 - G_MESSAGES_DEBUG=error
82
83
84 git:
85 # we want to do this ourselves
86 submodules: false
87
88 # Common first phase for all steps
89 before_install:
90 - if command -v ccache ; then ccache --zero-stats ; fi
91 - export JOBS=$(($(getconf _NPROCESSORS_ONLN) + 1))
92 - echo "=== Using ${JOBS} simultaneous jobs ==="
93
94 # Configure step - may be overridden
95 before_script:
96 - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
97 - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log meson-logs/meson-log.txt && exit 1; }
98
99 # Main build & test - rarely overridden - controlled by TEST_CMD
100 script:
101 - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
102 - |
103 if [ "$BUILD_RC" -eq 0 ] && [ -n "$TEST_BUILD_CMD" ]; then
104 ${TEST_BUILD_CMD} || BUILD_RC=$?
105 else
106 $(exit $BUILD_RC);
107 fi
108 - |
109 if [ "$BUILD_RC" -eq 0 ] ; then
110 ${TEST_CMD} ;
111 else
112 $(exit $BUILD_RC);
113 fi
114 after_script:
115 - df -h
116 - if command -v ccache ; then ccache --show-stats ; fi
117
118
119 jobs:
120 include:
121
122
123 # Using newer GCC with sanitizers
124 - name: "GCC9 with sanitizers (softmmu)"
125 dist: bionic
126 addons:
127 apt:
128 update: true
129 sources:
130 # PPAs for newer toolchains
131 - ubuntu-toolchain-r-test
132 packages:
133 # Extra toolchains
134 - gcc-9
135 - g++-9
136 # Build dependencies
137 - libaio-dev
138 - libattr1-dev
139 - libbrlapi-dev
140 - libcap-ng-dev
141 - libgnutls28-dev
142 - libgtk-3-dev
143 - libiscsi-dev
144 - liblttng-ust-dev
145 - libnfs-dev
146 - libncurses5-dev
147 - libnss3-dev
148 - libpixman-1-dev
149 - libpng-dev
150 - librados-dev
151 - libsdl2-dev
152 - libsdl2-image-dev
153 - libseccomp-dev
154 - libspice-protocol-dev
155 - libspice-server-dev
156 - liburcu-dev
157 - libusb-1.0-0-dev
158 - libvte-2.91-dev
159 - ninja-build
160 - sparse
161 - uuid-dev
162 language: generic
163 compiler: none
164 env:
165 - COMPILER_NAME=gcc CXX=g++-9 CC=gcc-9
166 - CONFIG="--cc=gcc-9 --cxx=g++-9 --disable-linux-user"
167 - TEST_CMD=""
168 before_script:
169 - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
170 - ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-g3 -O0 -fsanitize=thread" || { cat config.log meson-logs/meson-log.txt && exit 1; }
171
172
173 - name: "[aarch64] GCC check-tcg"
174 arch: arm64
175 dist: focal
176 addons:
177 apt_packages:
178 - libaio-dev
179 - libattr1-dev
180 - libbrlapi-dev
181 - libcap-ng-dev
182 - libgcrypt20-dev
183 - libgnutls28-dev
184 - libgtk-3-dev
185 - libiscsi-dev
186 - liblttng-ust-dev
187 - libncurses5-dev
188 - libnfs-dev
189 - libnss3-dev
190 - libpixman-1-dev
191 - libpng-dev
192 - librados-dev
193 - libsdl2-dev
194 - libseccomp-dev
195 - liburcu-dev
196 - libusb-1.0-0-dev
197 - libvdeplug-dev
198 - libvte-2.91-dev
199 - ninja-build
200 # Tests dependencies
201 - genisoimage
202 env:
203 - TEST_CMD="make check check-tcg V=1"
204 - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS}"
205 - UNRELIABLE=true
206
207 - name: "[ppc64] GCC check-tcg"
208 arch: ppc64le
209 dist: focal
210 addons:
211 apt_packages:
212 - libaio-dev
213 - libattr1-dev
214 - libbrlapi-dev
215 - libcap-ng-dev
216 - libgcrypt20-dev
217 - libgnutls28-dev
218 - libgtk-3-dev
219 - libiscsi-dev
220 - liblttng-ust-dev
221 - libncurses5-dev
222 - libnfs-dev
223 - libnss3-dev
224 - libpixman-1-dev
225 - libpng-dev
226 - librados-dev
227 - libsdl2-dev
228 - libseccomp-dev
229 - liburcu-dev
230 - libusb-1.0-0-dev
231 - libvdeplug-dev
232 - libvte-2.91-dev
233 - ninja-build
234 # Tests dependencies
235 - genisoimage
236 env:
237 - TEST_CMD="make check check-tcg V=1"
238 - CONFIG="--disable-containers --target-list=ppc64-softmmu,ppc64le-linux-user"
239
240 - name: "[s390x] GCC check-tcg"
241 arch: s390x
242 dist: bionic
243 addons:
244 apt_packages:
245 - libaio-dev
246 - libattr1-dev
247 - libbrlapi-dev
248 - libcap-ng-dev
249 - libgcrypt20-dev
250 - libgnutls28-dev
251 - libgtk-3-dev
252 - libiscsi-dev
253 - liblttng-ust-dev
254 - libncurses5-dev
255 - libnfs-dev
256 - libnss3-dev
257 - libpixman-1-dev
258 - libpng-dev
259 - librados-dev
260 - libsdl2-dev
261 - libseccomp-dev
262 - liburcu-dev
263 - libusb-1.0-0-dev
264 - libvdeplug-dev
265 - libvte-2.91-dev
266 - ninja-build
267 # Tests dependencies
268 - genisoimage
269 env:
270 - TEST_CMD="make check check-tcg V=1"
271 - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS},s390x-linux-user"
272 - UNRELIABLE=true
273 script:
274 - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
275 - |
276 if [ "$BUILD_RC" -eq 0 ] ; then
277 mv pc-bios/s390-ccw/*.img pc-bios/ ;
278 ${TEST_CMD} ;
279 else
280 $(exit $BUILD_RC);
281 fi
282
283 - name: "[s390x] GCC (other-softmmu)"
284 arch: s390x
285 dist: bionic
286 addons:
287 apt_packages:
288 - libaio-dev
289 - libattr1-dev
290 - libcap-ng-dev
291 - libgnutls28-dev
292 - libiscsi-dev
293 - liblttng-ust-dev
294 - liblzo2-dev
295 - libncurses-dev
296 - libnfs-dev
297 - libnss3-dev
298 - libpixman-1-dev
299 - libsdl2-dev
300 - libsdl2-image-dev
301 - libseccomp-dev
302 - libsnappy-dev
303 - libzstd-dev
304 - nettle-dev
305 - xfslibs-dev
306 - ninja-build
307 # Tests dependencies
308 - genisoimage
309 env:
310 - CONFIG="--disable-containers --audio-drv-list=sdl --disable-user
311 --target-list-exclude=${MAIN_SOFTMMU_TARGETS}"
312
313 - name: "[s390x] GCC (user)"
314 arch: s390x
315 dist: bionic
316 addons:
317 apt_packages:
318 - libgcrypt20-dev
319 - libgnutls28-dev
320 - ninja-build
321 env:
322 - CONFIG="--disable-containers --disable-system"
323
324 - name: "[s390x] Clang (disable-tcg)"
325 arch: s390x
326 dist: bionic
327 compiler: clang
328 addons:
329 apt_packages:
330 - libaio-dev
331 - libattr1-dev
332 - libbrlapi-dev
333 - libcap-ng-dev
334 - libgcrypt20-dev
335 - libgnutls28-dev
336 - libgtk-3-dev
337 - libiscsi-dev
338 - liblttng-ust-dev
339 - libncurses5-dev
340 - libnfs-dev
341 - libnss3-dev
342 - libpixman-1-dev
343 - libpng-dev
344 - librados-dev
345 - libsdl2-dev
346 - libseccomp-dev
347 - liburcu-dev
348 - libusb-1.0-0-dev
349 - libvdeplug-dev
350 - libvte-2.91-dev
351 - ninja-build
352 env:
353 - TEST_CMD="make check-unit"
354 - CONFIG="--disable-containers --disable-tcg --enable-kvm
355 --disable-tools --host-cc=clang --cxx=clang++"
356 - UNRELIABLE=true
357
358 # Release builds
359 # The make-release script expect a QEMU version, so our tag must start with a 'v'.
360 # This is the case when release candidate tags are created.
361 - name: "Release tarball"
362 if: tag IS present AND tag =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/
363 env:
364 # We want to build from the release tarball
365 - BUILD_DIR="release/build/dir" SRC_DIR="../../.."
366 - BASE_CONFIG="--prefix=$PWD/dist"
367 - CONFIG="--target-list=x86_64-softmmu,aarch64-softmmu,armeb-linux-user,ppc-linux-user"
368 - TEST_CMD="make install -j${JOBS}"
369 - QEMU_VERSION="${TRAVIS_TAG:1}"
370 - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
371 script:
372 - make -C ${SRC_DIR} qemu-${QEMU_VERSION}.tar.bz2
373 - ls -l ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2
374 - tar -xf ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2 && cd qemu-${QEMU_VERSION}
375 - mkdir -p release-build && cd release-build
376 - ../configure ${BASE_CONFIG} ${CONFIG} || { cat config.log meson-logs/meson-log.txt && exit 1; }
377 - make install
378 allow_failures:
379 - env: UNRELIABLE=true