]> git.proxmox.com Git - mirror_qemu.git/blame - .travis.yml
.travis.yml: Remove the unused UNRELIABLE environment variable
[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
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
e769905e 84 dist: focal
9c5941a9
TH
85 addons:
86 apt_packages:
87 - libaio-dev
88 - libattr1-dev
89 - libbrlapi-dev
51f5c849 90 - libcacard-dev
9c5941a9 91 - libcap-ng-dev
769897bd 92 - libfdt-dev
9c5941a9
TH
93 - libgcrypt20-dev
94 - libgnutls28-dev
95 - libgtk-3-dev
96 - libiscsi-dev
97 - liblttng-ust-dev
98 - libncurses5-dev
99 - libnfs-dev
9c5941a9
TH
100 - libpixman-1-dev
101 - libpng-dev
102 - librados-dev
103 - libsdl2-dev
104 - libseccomp-dev
105 - liburcu-dev
106 - libusb-1.0-0-dev
107 - libvdeplug-dev
108 - libvte-2.91-dev
345d7053 109 - ninja-build
58a1e5b6
WSM
110 # Tests dependencies
111 - genisoimage
9c5941a9
TH
112 env:
113 - TEST_CMD="make check check-tcg V=1"
769897bd 114 - CONFIG="--disable-containers --enable-fdt=system
aebe0a85 115 --target-list=${MAIN_SYSTEM_TARGETS} --cxx=/bin/false"
9c5941a9 116
097aebd8
PMD
117 - name: "[ppc64] GCC check-tcg"
118 arch: ppc64le
e769905e 119 dist: focal
9c5941a9
TH
120 addons:
121 apt_packages:
122 - libaio-dev
123 - libattr1-dev
124 - libbrlapi-dev
51f5c849 125 - libcacard-dev
9c5941a9 126 - libcap-ng-dev
769897bd 127 - libfdt-dev
9c5941a9
TH
128 - libgcrypt20-dev
129 - libgnutls28-dev
130 - libgtk-3-dev
131 - libiscsi-dev
132 - liblttng-ust-dev
133 - libncurses5-dev
134 - libnfs-dev
9c5941a9
TH
135 - libpixman-1-dev
136 - libpng-dev
137 - librados-dev
138 - libsdl2-dev
139 - libseccomp-dev
140 - liburcu-dev
141 - libusb-1.0-0-dev
142 - libvdeplug-dev
143 - libvte-2.91-dev
345d7053 144 - ninja-build
58a1e5b6
WSM
145 # Tests dependencies
146 - genisoimage
9c5941a9
TH
147 env:
148 - TEST_CMD="make check check-tcg V=1"
769897bd
TH
149 - CONFIG="--disable-containers --enable-fdt=system
150 --target-list=ppc64-softmmu,ppc64le-linux-user"
9c5941a9 151
097aebd8
PMD
152 - name: "[s390x] GCC check-tcg"
153 arch: s390x
e7b3b095 154 dist: focal
9c5941a9
TH
155 addons:
156 apt_packages:
157 - libaio-dev
158 - libattr1-dev
159 - libbrlapi-dev
51f5c849 160 - libcacard-dev
9c5941a9 161 - libcap-ng-dev
769897bd 162 - libfdt-dev
9c5941a9
TH
163 - libgcrypt20-dev
164 - libgnutls28-dev
165 - libgtk-3-dev
166 - libiscsi-dev
167 - liblttng-ust-dev
168 - libncurses5-dev
169 - libnfs-dev
9c5941a9
TH
170 - libpixman-1-dev
171 - libpng-dev
172 - librados-dev
173 - libsdl2-dev
174 - libseccomp-dev
175 - liburcu-dev
176 - libusb-1.0-0-dev
177 - libvdeplug-dev
178 - libvte-2.91-dev
345d7053 179 - ninja-build
58a1e5b6
WSM
180 # Tests dependencies
181 - genisoimage
9c5941a9
TH
182 env:
183 - TEST_CMD="make check check-tcg V=1"
0235540b
TH
184 - CONFIG="--disable-containers
185 --target-list=hppa-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
31c8cc4f 186 script:
31c8cc4f
TH
187 - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
188 - |
189 if [ "$BUILD_RC" -eq 0 ] ; then
882084a0 190 mv pc-bios/s390-ccw/*.img qemu-bundle/usr/local/share/qemu ;
31c8cc4f
TH
191 ${TEST_CMD} ;
192 else
193 $(exit $BUILD_RC);
194 fi
61ac3dcc 195
27703590 196 - name: "[s390x] GCC (other-system)"
100a5efb 197 arch: s390x
e7b3b095 198 dist: focal
100a5efb
TH
199 addons:
200 apt_packages:
201 - libaio-dev
202 - libattr1-dev
51f5c849 203 - libcacard-dev
100a5efb 204 - libcap-ng-dev
769897bd 205 - libfdt-dev
100a5efb
TH
206 - libgnutls28-dev
207 - libiscsi-dev
208 - liblttng-ust-dev
209 - liblzo2-dev
210 - libncurses-dev
211 - libnfs-dev
100a5efb
TH
212 - libpixman-1-dev
213 - libsdl2-dev
214 - libsdl2-image-dev
215 - libseccomp-dev
216 - libsnappy-dev
217 - libzstd-dev
218 - nettle-dev
345d7053 219 - ninja-build
100a5efb
TH
220 # Tests dependencies
221 - genisoimage
222 env:
0235540b
TH
223 - CONFIG="--disable-containers --audio-drv-list=sdl --disable-user
224 --target-list=arm-softmmu,avr-softmmu,microblaze-softmmu,sh4eb-softmmu,sparc64-softmmu,xtensaeb-softmmu"
db727a14 225
100a5efb
TH
226 - name: "[s390x] GCC (user)"
227 arch: s390x
e7b3b095 228 dist: focal
100a5efb
TH
229 addons:
230 apt_packages:
231 - libgcrypt20-dev
e7b3b095 232 - libglib2.0-dev
100a5efb 233 - libgnutls28-dev
345d7053 234 - ninja-build
e23130f9
VJ
235 - flex
236 - bison
100a5efb 237 env:
0235540b 238 - TEST_CMD="make check check-tcg V=1"
100a5efb 239 - CONFIG="--disable-containers --disable-system"
db727a14 240
aae8b87e 241 - name: "[s390x] Clang (disable-tcg)"
41e1f0e2 242 arch: s390x
e7b3b095 243 dist: focal
a53be666 244 compiler: clang-10
41e1f0e2
PMD
245 addons:
246 apt_packages:
247 - libaio-dev
248 - libattr1-dev
249 - libbrlapi-dev
51f5c849 250 - libcacard-dev
41e1f0e2 251 - libcap-ng-dev
769897bd 252 - libfdt-dev
41e1f0e2
PMD
253 - libgcrypt20-dev
254 - libgnutls28-dev
255 - libgtk-3-dev
256 - libiscsi-dev
257 - liblttng-ust-dev
258 - libncurses5-dev
259 - libnfs-dev
41e1f0e2
PMD
260 - libpixman-1-dev
261 - libpng-dev
262 - librados-dev
263 - libsdl2-dev
264 - libseccomp-dev
265 - liburcu-dev
266 - libusb-1.0-0-dev
267 - libvdeplug-dev
268 - libvte-2.91-dev
345d7053 269 - ninja-build
a53be666 270 - clang-10
41e1f0e2
PMD
271 env:
272 - TEST_CMD="make check-unit"
769897bd
TH
273 - CONFIG="--disable-containers --disable-tcg --enable-kvm --disable-tools
274 --enable-fdt=system --host-cc=clang --cxx=clang++"