]> git.proxmox.com Git - mirror_qemu.git/blame - .travis.yml
tests: Update our CI to use CentOS Stream 9 instead of 8
[mirror_qemu.git] / .travis.yml
CommitLineData
321e6ea5 1os: linux
66163bc7 2dist: jammy
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)
66163bc7 10 # - OS distribution (e.g. "jammy" for Linux)
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
197be697
DB
15
16
cb4c2536
PK
17# The channel name "irc.oftc.net#qemu" is encrypted against qemu/qemu
18# to prevent IRC notifications from forks. This was created using:
19# $ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu"
39d16d29
AB
20notifications:
21 irc:
22 channels:
cb4c2536 23 - secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1KWKjZe9KDTZWppWRYVwAwQMzVeSOsbbU4tRoJ6Pp+3qhH1Z0eGYR9ZgKYAoTumDFgSAYRp4IscKS8jkoedOqM="
39d16d29
AB
24 on_success: change
25 on_failure: always
197be697
DB
26
27
fe863ab9
AB
28env:
29 global:
bc4486fb
PB
30 - SRC_DIR=".."
31 - BUILD_DIR="build"
570f3c77 32 - BASE_CONFIG="--disable-docs --disable-tools"
4f46afd9 33 - TEST_BUILD_CMD=""
05273a43 34 - TEST_CMD="make check V=1"
27703590 35 # This is broadly a list of "mainline" system targets which have support across the major distros
aebe0a85 36 - MAIN_SYSTEM_TARGETS="aarch64-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
bcfbf0d5
PMD
37 - CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime"
38 - CCACHE_MAXSIZE=1G
2dbd39c2 39 - G_MESSAGES_DEBUG=error
bcfbf0d5 40
197be697 41
cb021cfe
AB
42git:
43 # we want to do this ourselves
44 submodules: false
197be697 45
b3165c87 46# Common first phase for all steps
fc424182
TH
47# We no longer use nproc to calculate jobs:
48# https://travis-ci.community/t/nproc-reports-32-cores-on-arm64/5851
b3165c87
AB
49before_install:
50 - if command -v ccache ; then ccache --zero-stats ; fi
fc424182 51 - export JOBS=3
0a7c0ae0 52 - echo "=== Using ${JOBS} simultaneous jobs ==="
197be697 53
b3165c87 54# Configure step - may be overridden
eebf2940 55before_script:
ebf2ff65 56 - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
c47110d9 57 - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log meson-logs/meson-log.txt && exit 1; }
b3165c87
AB
58
59# Main build & test - rarely overridden - controlled by TEST_CMD
eebf2940 60script:
0a7c0ae0 61 - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
4f46afd9
AB
62 - |
63 if [ "$BUILD_RC" -eq 0 ] && [ -n "$TEST_BUILD_CMD" ]; then
64 ${TEST_BUILD_CMD} || BUILD_RC=$?
65 else
66 $(exit $BUILD_RC);
67 fi
ec49faac
AB
68 - |
69 if [ "$BUILD_RC" -eq 0 ] ; then
70 ${TEST_CMD} ;
71 else
72 $(exit $BUILD_RC);
73 fi
bcfbf0d5 74after_script:
4f8bde52 75 - df -h
312995c2 76 - if command -v ccache ; then ccache --show-stats ; fi
197be697
DB
77
78
321e6ea5 79jobs:
fe863ab9 80 include:
3e094234 81
097aebd8
PMD
82 - name: "[aarch64] GCC check-tcg"
83 arch: arm64
9c5941a9
TH
84 addons:
85 apt_packages:
86 - libaio-dev
87 - libattr1-dev
88 - libbrlapi-dev
51f5c849 89 - libcacard-dev
9c5941a9 90 - libcap-ng-dev
769897bd 91 - libfdt-dev
9c5941a9
TH
92 - libgcrypt20-dev
93 - libgnutls28-dev
94 - libgtk-3-dev
95 - libiscsi-dev
96 - liblttng-ust-dev
97 - libncurses5-dev
98 - libnfs-dev
9c5941a9
TH
99 - libpixman-1-dev
100 - libpng-dev
101 - librados-dev
102 - libsdl2-dev
103 - libseccomp-dev
104 - liburcu-dev
105 - libusb-1.0-0-dev
106 - libvdeplug-dev
107 - libvte-2.91-dev
345d7053 108 - ninja-build
58a1e5b6
WSM
109 # Tests dependencies
110 - genisoimage
9c5941a9
TH
111 env:
112 - TEST_CMD="make check check-tcg V=1"
769897bd 113 - CONFIG="--disable-containers --enable-fdt=system
aebe0a85 114 --target-list=${MAIN_SYSTEM_TARGETS} --cxx=/bin/false"
9c5941a9 115
4d6ae2df 116 - name: "[ppc64] Clang check-tcg"
097aebd8 117 arch: ppc64le
4d6ae2df 118 compiler: clang
9c5941a9
TH
119 addons:
120 apt_packages:
121 - libaio-dev
122 - libattr1-dev
123 - libbrlapi-dev
51f5c849 124 - libcacard-dev
9c5941a9 125 - libcap-ng-dev
769897bd 126 - libfdt-dev
9c5941a9
TH
127 - libgcrypt20-dev
128 - libgnutls28-dev
129 - libgtk-3-dev
130 - libiscsi-dev
131 - liblttng-ust-dev
132 - libncurses5-dev
133 - libnfs-dev
9c5941a9
TH
134 - libpixman-1-dev
135 - libpng-dev
136 - librados-dev
137 - libsdl2-dev
138 - libseccomp-dev
139 - liburcu-dev
140 - libusb-1.0-0-dev
141 - libvdeplug-dev
142 - libvte-2.91-dev
345d7053 143 - ninja-build
58a1e5b6
WSM
144 # Tests dependencies
145 - genisoimage
9c5941a9
TH
146 env:
147 - TEST_CMD="make check check-tcg V=1"
769897bd
TH
148 - CONFIG="--disable-containers --enable-fdt=system
149 --target-list=ppc64-softmmu,ppc64le-linux-user"
9c5941a9 150
097aebd8
PMD
151 - name: "[s390x] GCC check-tcg"
152 arch: s390x
9c5941a9
TH
153 addons:
154 apt_packages:
155 - libaio-dev
156 - libattr1-dev
157 - libbrlapi-dev
51f5c849 158 - libcacard-dev
9c5941a9 159 - libcap-ng-dev
769897bd 160 - libfdt-dev
9c5941a9
TH
161 - libgcrypt20-dev
162 - libgnutls28-dev
163 - libgtk-3-dev
164 - libiscsi-dev
165 - liblttng-ust-dev
166 - libncurses5-dev
167 - libnfs-dev
9c5941a9
TH
168 - libpixman-1-dev
169 - libpng-dev
170 - librados-dev
171 - libsdl2-dev
172 - libseccomp-dev
173 - liburcu-dev
174 - libusb-1.0-0-dev
175 - libvdeplug-dev
176 - libvte-2.91-dev
345d7053 177 - ninja-build
58a1e5b6
WSM
178 # Tests dependencies
179 - genisoimage
9c5941a9
TH
180 env:
181 - TEST_CMD="make check check-tcg V=1"
0235540b
TH
182 - CONFIG="--disable-containers
183 --target-list=hppa-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
31c8cc4f 184 script:
31c8cc4f
TH
185 - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
186 - |
187 if [ "$BUILD_RC" -eq 0 ] ; then
882084a0 188 mv pc-bios/s390-ccw/*.img qemu-bundle/usr/local/share/qemu ;
31c8cc4f
TH
189 ${TEST_CMD} ;
190 else
191 $(exit $BUILD_RC);
192 fi
61ac3dcc 193
4d6ae2df 194 - name: "[s390x] Clang (other-system)"
100a5efb 195 arch: s390x
4d6ae2df 196 compiler: clang
100a5efb
TH
197 addons:
198 apt_packages:
199 - libaio-dev
200 - libattr1-dev
51f5c849 201 - libcacard-dev
100a5efb 202 - libcap-ng-dev
769897bd 203 - libfdt-dev
100a5efb
TH
204 - libgnutls28-dev
205 - libiscsi-dev
206 - liblttng-ust-dev
207 - liblzo2-dev
208 - libncurses-dev
209 - libnfs-dev
100a5efb
TH
210 - libpixman-1-dev
211 - libsdl2-dev
212 - libsdl2-image-dev
213 - libseccomp-dev
214 - libsnappy-dev
215 - libzstd-dev
216 - nettle-dev
345d7053 217 - ninja-build
100a5efb
TH
218 # Tests dependencies
219 - genisoimage
220 env:
0235540b
TH
221 - CONFIG="--disable-containers --audio-drv-list=sdl --disable-user
222 --target-list=arm-softmmu,avr-softmmu,microblaze-softmmu,sh4eb-softmmu,sparc64-softmmu,xtensaeb-softmmu"
db727a14 223
100a5efb
TH
224 - name: "[s390x] GCC (user)"
225 arch: s390x
100a5efb
TH
226 addons:
227 apt_packages:
228 - libgcrypt20-dev
e7b3b095 229 - libglib2.0-dev
100a5efb 230 - libgnutls28-dev
345d7053 231 - ninja-build
e23130f9
VJ
232 - flex
233 - bison
100a5efb 234 env:
0235540b 235 - TEST_CMD="make check check-tcg V=1"
100a5efb 236 - CONFIG="--disable-containers --disable-system"
db727a14 237
aae8b87e 238 - name: "[s390x] Clang (disable-tcg)"
41e1f0e2 239 arch: s390x
66163bc7 240 compiler: clang
41e1f0e2
PMD
241 addons:
242 apt_packages:
243 - libaio-dev
244 - libattr1-dev
245 - libbrlapi-dev
51f5c849 246 - libcacard-dev
41e1f0e2 247 - libcap-ng-dev
769897bd 248 - libfdt-dev
41e1f0e2
PMD
249 - libgcrypt20-dev
250 - libgnutls28-dev
251 - libgtk-3-dev
252 - libiscsi-dev
253 - liblttng-ust-dev
254 - libncurses5-dev
255 - libnfs-dev
41e1f0e2
PMD
256 - libpixman-1-dev
257 - libpng-dev
258 - librados-dev
259 - libsdl2-dev
260 - libseccomp-dev
261 - liburcu-dev
262 - libusb-1.0-0-dev
263 - libvdeplug-dev
264 - libvte-2.91-dev
345d7053 265 - ninja-build
41e1f0e2
PMD
266 env:
267 - TEST_CMD="make check-unit"
769897bd
TH
268 - CONFIG="--disable-containers --disable-tcg --enable-kvm --disable-tools
269 --enable-fdt=system --host-cc=clang --cxx=clang++"