]> git.proxmox.com Git - mirror_qemu.git/blame - .travis.yml
disas: add G_GNUC_PRINTF to gstring_printf
[mirror_qemu.git] / .travis.yml
CommitLineData
321e6ea5 1os: linux
e769905e 2dist: focal
fe863ab9 3language: c
fe863ab9
AB
4compiler:
5 - gcc
4bc629b2 6cache:
5ef9c53c
PMD
7 # There is one cache per branch and compiler version.
8 # characteristics of each job are used to identify the cache:
22a23195 9 # - OS name (currently only linux)
e769905e 10 # - OS distribution (for Linux, bionic or focal)
5ef9c53c 11 # - Names and values of visible environment variables set in .travis.yml or Settings panel
731cbb64 12 timeout: 1200
4bc629b2 13 ccache: true
6e189d78 14 pip: true
c1073e44
PMD
15 directories:
16 - $HOME/avocado/data/cache
197be697
DB
17
18
692d162c
AB
19addons:
20 apt:
21 packages:
32265288 22 # Build dependencies
692d162c
AB
23 - libaio-dev
24 - libattr1-dev
25 - libbrlapi-dev
26 - libcap-ng-dev
51f5c849 27 - libcacard-dev
e769905e 28 - libgcc-7-dev
3c7a8b41 29 - libgnutls28-dev
692d162c
AB
30 - libgtk-3-dev
31 - libiscsi-dev
32 - liblttng-ust-dev
33 - libncurses5-dev
d83414e1 34 - libnfs-dev
692d162c 35 - libpixman-1-dev
3c7a8b41 36 - libpng-dev
692d162c 37 - librados-dev
241e7955
TH
38 - libsdl2-dev
39 - libsdl2-image-dev
692d162c
AB
40 - libseccomp-dev
41 - libspice-protocol-dev
42 - libspice-server-dev
b10d49d7 43 - libssh-dev
692d162c
AB
44 - liburcu-dev
45 - libusb-1.0-0-dev
7c1dd4d1 46 - libvdeplug-dev
95310576 47 - libvte-2.91-dev
3a678481 48 - libzstd-dev
345d7053 49 - ninja-build
692d162c
AB
50 - sparse
51 - uuid-dev
58a1e5b6
WSM
52 # Tests dependencies
53 - genisoimage
692d162c 54
197be697 55
cb4c2536
PK
56# The channel name "irc.oftc.net#qemu" is encrypted against qemu/qemu
57# to prevent IRC notifications from forks. This was created using:
58# $ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu"
39d16d29
AB
59notifications:
60 irc:
61 channels:
cb4c2536 62 - secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1KWKjZe9KDTZWppWRYVwAwQMzVeSOsbbU4tRoJ6Pp+3qhH1Z0eGYR9ZgKYAoTumDFgSAYRp4IscKS8jkoedOqM="
39d16d29
AB
63 on_success: change
64 on_failure: always
197be697
DB
65
66
fe863ab9
AB
67env:
68 global:
bc4486fb
PB
69 - SRC_DIR=".."
70 - BUILD_DIR="build"
570f3c77 71 - BASE_CONFIG="--disable-docs --disable-tools"
4f46afd9 72 - TEST_BUILD_CMD=""
05273a43 73 - TEST_CMD="make check V=1"
8c3daf97 74 # This is broadly a list of "mainline" softmmu targets which have support across the major distros
6e988880 75 - MAIN_SOFTMMU_TARGETS="aarch64-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
bcfbf0d5
PMD
76 - CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime"
77 - CCACHE_MAXSIZE=1G
2dbd39c2 78 - G_MESSAGES_DEBUG=error
bcfbf0d5 79
197be697 80
cb021cfe
AB
81git:
82 # we want to do this ourselves
83 submodules: false
197be697 84
b3165c87 85# Common first phase for all steps
fc424182
TH
86# We no longer use nproc to calculate jobs:
87# https://travis-ci.community/t/nproc-reports-32-cores-on-arm64/5851
b3165c87
AB
88before_install:
89 - if command -v ccache ; then ccache --zero-stats ; fi
fc424182 90 - export JOBS=3
0a7c0ae0 91 - echo "=== Using ${JOBS} simultaneous jobs ==="
197be697 92
b3165c87 93# Configure step - may be overridden
eebf2940 94before_script:
ebf2ff65 95 - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
c47110d9 96 - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log meson-logs/meson-log.txt && exit 1; }
b3165c87
AB
97
98# Main build & test - rarely overridden - controlled by TEST_CMD
eebf2940 99script:
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 113after_script:
4f8bde52 114 - df -h
312995c2 115 - if command -v ccache ; then ccache --show-stats ; fi
197be697
DB
116
117
321e6ea5 118jobs:
fe863ab9 119 include:
3e094234 120
097aebd8
PMD
121 - name: "[aarch64] GCC check-tcg"
122 arch: arm64
e769905e 123 dist: focal
9c5941a9
TH
124 addons:
125 apt_packages:
126 - libaio-dev
127 - libattr1-dev
128 - libbrlapi-dev
51f5c849 129 - libcacard-dev
9c5941a9
TH
130 - libcap-ng-dev
131 - libgcrypt20-dev
132 - libgnutls28-dev
133 - libgtk-3-dev
134 - libiscsi-dev
135 - liblttng-ust-dev
136 - libncurses5-dev
137 - libnfs-dev
9c5941a9
TH
138 - libpixman-1-dev
139 - libpng-dev
140 - librados-dev
141 - libsdl2-dev
142 - libseccomp-dev
143 - liburcu-dev
144 - libusb-1.0-0-dev
145 - libvdeplug-dev
146 - libvte-2.91-dev
345d7053 147 - ninja-build
58a1e5b6
WSM
148 # Tests dependencies
149 - genisoimage
9c5941a9
TH
150 env:
151 - TEST_CMD="make check check-tcg V=1"
aa2ea7ad 152 - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS} --cxx=/bin/false"
1de8e4c4 153 - UNRELIABLE=true
9c5941a9 154
097aebd8
PMD
155 - name: "[ppc64] GCC check-tcg"
156 arch: ppc64le
e769905e 157 dist: focal
9c5941a9
TH
158 addons:
159 apt_packages:
160 - libaio-dev
161 - libattr1-dev
162 - libbrlapi-dev
51f5c849 163 - libcacard-dev
9c5941a9
TH
164 - libcap-ng-dev
165 - libgcrypt20-dev
166 - libgnutls28-dev
167 - libgtk-3-dev
168 - libiscsi-dev
169 - liblttng-ust-dev
170 - libncurses5-dev
171 - libnfs-dev
9c5941a9
TH
172 - libpixman-1-dev
173 - libpng-dev
174 - librados-dev
175 - libsdl2-dev
176 - libseccomp-dev
177 - liburcu-dev
178 - libusb-1.0-0-dev
179 - libvdeplug-dev
180 - libvte-2.91-dev
345d7053 181 - ninja-build
58a1e5b6
WSM
182 # Tests dependencies
183 - genisoimage
9c5941a9
TH
184 env:
185 - TEST_CMD="make check check-tcg V=1"
daee97f6 186 - CONFIG="--disable-containers --target-list=ppc64-softmmu,ppc64le-linux-user"
9c5941a9 187
097aebd8
PMD
188 - name: "[s390x] GCC check-tcg"
189 arch: s390x
e7b3b095 190 dist: focal
9c5941a9
TH
191 addons:
192 apt_packages:
193 - libaio-dev
194 - libattr1-dev
195 - libbrlapi-dev
51f5c849 196 - libcacard-dev
9c5941a9
TH
197 - libcap-ng-dev
198 - libgcrypt20-dev
199 - libgnutls28-dev
200 - libgtk-3-dev
201 - libiscsi-dev
202 - liblttng-ust-dev
203 - libncurses5-dev
204 - libnfs-dev
9c5941a9
TH
205 - libpixman-1-dev
206 - libpng-dev
207 - librados-dev
208 - libsdl2-dev
209 - libseccomp-dev
210 - liburcu-dev
211 - libusb-1.0-0-dev
212 - libvdeplug-dev
213 - libvte-2.91-dev
345d7053 214 - ninja-build
58a1e5b6
WSM
215 # Tests dependencies
216 - genisoimage
9c5941a9
TH
217 env:
218 - TEST_CMD="make check check-tcg V=1"
219 - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS},s390x-linux-user"
1de8e4c4 220 - UNRELIABLE=true
31c8cc4f 221 script:
31c8cc4f
TH
222 - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
223 - |
224 if [ "$BUILD_RC" -eq 0 ] ; then
882084a0 225 mv pc-bios/s390-ccw/*.img qemu-bundle/usr/local/share/qemu ;
31c8cc4f
TH
226 ${TEST_CMD} ;
227 else
228 $(exit $BUILD_RC);
229 fi
61ac3dcc 230
100a5efb
TH
231 - name: "[s390x] GCC (other-softmmu)"
232 arch: s390x
e7b3b095 233 dist: focal
100a5efb
TH
234 addons:
235 apt_packages:
236 - libaio-dev
237 - libattr1-dev
51f5c849 238 - libcacard-dev
100a5efb
TH
239 - libcap-ng-dev
240 - libgnutls28-dev
241 - libiscsi-dev
242 - liblttng-ust-dev
243 - liblzo2-dev
244 - libncurses-dev
245 - libnfs-dev
100a5efb
TH
246 - libpixman-1-dev
247 - libsdl2-dev
248 - libsdl2-image-dev
249 - libseccomp-dev
250 - libsnappy-dev
251 - libzstd-dev
252 - nettle-dev
253 - xfslibs-dev
345d7053 254 - ninja-build
100a5efb
TH
255 # Tests dependencies
256 - genisoimage
257 env:
258 - CONFIG="--disable-containers --audio-drv-list=sdl --disable-user
259 --target-list-exclude=${MAIN_SOFTMMU_TARGETS}"
db727a14 260
100a5efb
TH
261 - name: "[s390x] GCC (user)"
262 arch: s390x
e7b3b095 263 dist: focal
100a5efb
TH
264 addons:
265 apt_packages:
266 - libgcrypt20-dev
e7b3b095 267 - libglib2.0-dev
100a5efb 268 - libgnutls28-dev
345d7053 269 - ninja-build
100a5efb
TH
270 env:
271 - CONFIG="--disable-containers --disable-system"
db727a14 272
aae8b87e 273 - name: "[s390x] Clang (disable-tcg)"
41e1f0e2 274 arch: s390x
e7b3b095 275 dist: focal
aae8b87e 276 compiler: clang
41e1f0e2
PMD
277 addons:
278 apt_packages:
279 - libaio-dev
280 - libattr1-dev
281 - libbrlapi-dev
51f5c849 282 - libcacard-dev
41e1f0e2
PMD
283 - libcap-ng-dev
284 - libgcrypt20-dev
285 - libgnutls28-dev
286 - libgtk-3-dev
287 - libiscsi-dev
288 - liblttng-ust-dev
289 - libncurses5-dev
290 - libnfs-dev
41e1f0e2
PMD
291 - libpixman-1-dev
292 - libpng-dev
293 - librados-dev
294 - libsdl2-dev
295 - libseccomp-dev
296 - liburcu-dev
297 - libusb-1.0-0-dev
298 - libvdeplug-dev
299 - libvte-2.91-dev
345d7053 300 - ninja-build
41e1f0e2
PMD
301 env:
302 - TEST_CMD="make check-unit"
aae8b87e
TH
303 - CONFIG="--disable-containers --disable-tcg --enable-kvm
304 --disable-tools --host-cc=clang --cxx=clang++"
1de8e4c4 305 - UNRELIABLE=true