]>
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 |
e769905e | 5 | dist: focal |
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: | |
22a23195 | 12 | # - OS name (currently only linux) |
e769905e | 13 | # - OS distribution (for Linux, bionic or focal) |
5ef9c53c | 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 | |
e769905e | 30 | - libgcc-7-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 |
3a678481 | 51 | - libzstd-dev |
345d7053 | 52 | - ninja-build |
692d162c AB |
53 | - sparse |
54 | - uuid-dev | |
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 | |
2dbd39c2 | 81 | - G_MESSAGES_DEBUG=error |
bcfbf0d5 | 82 | |
197be697 | 83 | |
cb021cfe AB |
84 | git: |
85 | # we want to do this ourselves | |
86 | submodules: false | |
197be697 | 87 | |
b3165c87 | 88 | # Common first phase for all steps |
fc424182 TH |
89 | # We no longer use nproc to calculate jobs: |
90 | # https://travis-ci.community/t/nproc-reports-32-cores-on-arm64/5851 | |
b3165c87 AB |
91 | before_install: |
92 | - if command -v ccache ; then ccache --zero-stats ; fi | |
fc424182 | 93 | - export JOBS=3 |
0a7c0ae0 | 94 | - echo "=== Using ${JOBS} simultaneous jobs ===" |
197be697 | 95 | |
b3165c87 | 96 | # Configure step - may be overridden |
eebf2940 | 97 | before_script: |
ebf2ff65 | 98 | - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} |
c47110d9 | 99 | - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log meson-logs/meson-log.txt && exit 1; } |
b3165c87 AB |
100 | |
101 | # Main build & test - rarely overridden - controlled by TEST_CMD | |
eebf2940 | 102 | script: |
0a7c0ae0 | 103 | - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$? |
4f46afd9 AB |
104 | - | |
105 | if [ "$BUILD_RC" -eq 0 ] && [ -n "$TEST_BUILD_CMD" ]; then | |
106 | ${TEST_BUILD_CMD} || BUILD_RC=$? | |
107 | else | |
108 | $(exit $BUILD_RC); | |
109 | fi | |
ec49faac AB |
110 | - | |
111 | if [ "$BUILD_RC" -eq 0 ] ; then | |
112 | ${TEST_CMD} ; | |
113 | else | |
114 | $(exit $BUILD_RC); | |
115 | fi | |
bcfbf0d5 | 116 | after_script: |
4f8bde52 | 117 | - df -h |
312995c2 | 118 | - if command -v ccache ; then ccache --show-stats ; fi |
197be697 DB |
119 | |
120 | ||
321e6ea5 | 121 | jobs: |
fe863ab9 | 122 | include: |
3e094234 | 123 | |
097aebd8 PMD |
124 | - name: "[aarch64] GCC check-tcg" |
125 | arch: arm64 | |
e769905e | 126 | dist: focal |
9c5941a9 TH |
127 | addons: |
128 | apt_packages: | |
129 | - libaio-dev | |
130 | - libattr1-dev | |
131 | - libbrlapi-dev | |
132 | - libcap-ng-dev | |
133 | - libgcrypt20-dev | |
134 | - libgnutls28-dev | |
135 | - libgtk-3-dev | |
136 | - libiscsi-dev | |
137 | - liblttng-ust-dev | |
138 | - libncurses5-dev | |
139 | - libnfs-dev | |
140 | - libnss3-dev | |
141 | - libpixman-1-dev | |
142 | - libpng-dev | |
143 | - librados-dev | |
144 | - libsdl2-dev | |
145 | - libseccomp-dev | |
146 | - liburcu-dev | |
147 | - libusb-1.0-0-dev | |
148 | - libvdeplug-dev | |
149 | - libvte-2.91-dev | |
345d7053 | 150 | - ninja-build |
58a1e5b6 WSM |
151 | # Tests dependencies |
152 | - genisoimage | |
9c5941a9 TH |
153 | env: |
154 | - TEST_CMD="make check check-tcg V=1" | |
aa2ea7ad | 155 | - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS} --cxx=/bin/false" |
1de8e4c4 | 156 | - UNRELIABLE=true |
9c5941a9 | 157 | |
097aebd8 PMD |
158 | - name: "[ppc64] GCC check-tcg" |
159 | arch: ppc64le | |
e769905e | 160 | dist: focal |
9c5941a9 TH |
161 | addons: |
162 | apt_packages: | |
163 | - libaio-dev | |
164 | - libattr1-dev | |
165 | - libbrlapi-dev | |
166 | - libcap-ng-dev | |
167 | - libgcrypt20-dev | |
168 | - libgnutls28-dev | |
169 | - libgtk-3-dev | |
170 | - libiscsi-dev | |
171 | - liblttng-ust-dev | |
172 | - libncurses5-dev | |
173 | - libnfs-dev | |
174 | - libnss3-dev | |
175 | - libpixman-1-dev | |
176 | - libpng-dev | |
177 | - librados-dev | |
178 | - libsdl2-dev | |
179 | - libseccomp-dev | |
180 | - liburcu-dev | |
181 | - libusb-1.0-0-dev | |
182 | - libvdeplug-dev | |
183 | - libvte-2.91-dev | |
345d7053 | 184 | - ninja-build |
58a1e5b6 WSM |
185 | # Tests dependencies |
186 | - genisoimage | |
9c5941a9 TH |
187 | env: |
188 | - TEST_CMD="make check check-tcg V=1" | |
daee97f6 | 189 | - CONFIG="--disable-containers --target-list=ppc64-softmmu,ppc64le-linux-user" |
9c5941a9 | 190 | |
097aebd8 PMD |
191 | - name: "[s390x] GCC check-tcg" |
192 | arch: s390x | |
9c5941a9 TH |
193 | dist: bionic |
194 | addons: | |
195 | apt_packages: | |
196 | - libaio-dev | |
197 | - libattr1-dev | |
198 | - libbrlapi-dev | |
199 | - libcap-ng-dev | |
200 | - libgcrypt20-dev | |
201 | - libgnutls28-dev | |
202 | - libgtk-3-dev | |
203 | - libiscsi-dev | |
204 | - liblttng-ust-dev | |
205 | - libncurses5-dev | |
206 | - libnfs-dev | |
207 | - libnss3-dev | |
208 | - libpixman-1-dev | |
209 | - libpng-dev | |
210 | - librados-dev | |
211 | - libsdl2-dev | |
212 | - libseccomp-dev | |
213 | - liburcu-dev | |
214 | - libusb-1.0-0-dev | |
215 | - libvdeplug-dev | |
216 | - libvte-2.91-dev | |
345d7053 | 217 | - ninja-build |
58a1e5b6 WSM |
218 | # Tests dependencies |
219 | - genisoimage | |
9c5941a9 TH |
220 | env: |
221 | - TEST_CMD="make check check-tcg V=1" | |
222 | - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS},s390x-linux-user" | |
1de8e4c4 | 223 | - UNRELIABLE=true |
31c8cc4f | 224 | script: |
31c8cc4f TH |
225 | - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$? |
226 | - | | |
227 | if [ "$BUILD_RC" -eq 0 ] ; then | |
228 | mv pc-bios/s390-ccw/*.img pc-bios/ ; | |
229 | ${TEST_CMD} ; | |
230 | else | |
231 | $(exit $BUILD_RC); | |
232 | fi | |
61ac3dcc | 233 | |
100a5efb TH |
234 | - name: "[s390x] GCC (other-softmmu)" |
235 | arch: s390x | |
236 | dist: bionic | |
237 | addons: | |
238 | apt_packages: | |
239 | - libaio-dev | |
240 | - libattr1-dev | |
241 | - libcap-ng-dev | |
242 | - libgnutls28-dev | |
243 | - libiscsi-dev | |
244 | - liblttng-ust-dev | |
245 | - liblzo2-dev | |
246 | - libncurses-dev | |
247 | - libnfs-dev | |
248 | - libnss3-dev | |
249 | - libpixman-1-dev | |
250 | - libsdl2-dev | |
251 | - libsdl2-image-dev | |
252 | - libseccomp-dev | |
253 | - libsnappy-dev | |
254 | - libzstd-dev | |
255 | - nettle-dev | |
256 | - xfslibs-dev | |
345d7053 | 257 | - ninja-build |
100a5efb TH |
258 | # Tests dependencies |
259 | - genisoimage | |
260 | env: | |
261 | - CONFIG="--disable-containers --audio-drv-list=sdl --disable-user | |
262 | --target-list-exclude=${MAIN_SOFTMMU_TARGETS}" | |
263 | ||
264 | - name: "[s390x] GCC (user)" | |
265 | arch: s390x | |
266 | dist: bionic | |
267 | addons: | |
268 | apt_packages: | |
269 | - libgcrypt20-dev | |
270 | - libgnutls28-dev | |
345d7053 | 271 | - ninja-build |
100a5efb TH |
272 | env: |
273 | - CONFIG="--disable-containers --disable-system" | |
274 | ||
aae8b87e | 275 | - name: "[s390x] Clang (disable-tcg)" |
41e1f0e2 PMD |
276 | arch: s390x |
277 | dist: bionic | |
aae8b87e | 278 | compiler: clang |
41e1f0e2 PMD |
279 | addons: |
280 | apt_packages: | |
281 | - libaio-dev | |
282 | - libattr1-dev | |
283 | - libbrlapi-dev | |
284 | - libcap-ng-dev | |
285 | - libgcrypt20-dev | |
286 | - libgnutls28-dev | |
287 | - libgtk-3-dev | |
288 | - libiscsi-dev | |
289 | - liblttng-ust-dev | |
290 | - libncurses5-dev | |
291 | - libnfs-dev | |
292 | - libnss3-dev | |
293 | - libpixman-1-dev | |
294 | - libpng-dev | |
295 | - librados-dev | |
296 | - libsdl2-dev | |
297 | - libseccomp-dev | |
298 | - liburcu-dev | |
299 | - libusb-1.0-0-dev | |
300 | - libvdeplug-dev | |
301 | - libvte-2.91-dev | |
345d7053 | 302 | - ninja-build |
41e1f0e2 PMD |
303 | env: |
304 | - TEST_CMD="make check-unit" | |
aae8b87e TH |
305 | - CONFIG="--disable-containers --disable-tcg --enable-kvm |
306 | --disable-tools --host-cc=clang --cxx=clang++" | |
1de8e4c4 | 307 | - UNRELIABLE=true |
41e1f0e2 | 308 | |
61ac3dcc PMD |
309 | # Release builds |
310 | # The make-release script expect a QEMU version, so our tag must start with a 'v'. | |
311 | # This is the case when release candidate tags are created. | |
097aebd8 PMD |
312 | - name: "Release tarball" |
313 | if: tag IS present AND tag =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/ | |
61ac3dcc PMD |
314 | env: |
315 | # We want to build from the release tarball | |
316 | - BUILD_DIR="release/build/dir" SRC_DIR="../../.." | |
317 | - BASE_CONFIG="--prefix=$PWD/dist" | |
318 | - CONFIG="--target-list=x86_64-softmmu,aarch64-softmmu,armeb-linux-user,ppc-linux-user" | |
0a7c0ae0 | 319 | - TEST_CMD="make install -j${JOBS}" |
61ac3dcc PMD |
320 | - QEMU_VERSION="${TRAVIS_TAG:1}" |
321 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" | |
61ac3dcc PMD |
322 | script: |
323 | - make -C ${SRC_DIR} qemu-${QEMU_VERSION}.tar.bz2 | |
324 | - ls -l ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2 | |
325 | - tar -xf ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2 && cd qemu-${QEMU_VERSION} | |
bc4486fb | 326 | - mkdir -p release-build && cd release-build |
c47110d9 | 327 | - ../configure ${BASE_CONFIG} ${CONFIG} || { cat config.log meson-logs/meson-log.txt && exit 1; } |
61ac3dcc | 328 | - make install |
1de8e4c4 AB |
329 | allow_failures: |
330 | - env: UNRELIABLE=true |