]>
Commit | Line | Data |
---|---|---|
321e6ea5 | 1 | os: linux |
e769905e | 2 | dist: focal |
fe863ab9 | 3 | language: c |
fe863ab9 AB |
4 | compiler: |
5 | - gcc | |
4bc629b2 | 6 | cache: |
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 |
20 | notifications: |
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 |
28 | env: |
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 |
42 | git: |
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 |
49 | before_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 | 55 | before_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 | 60 | script: |
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 | 74 | after_script: |
4f8bde52 | 75 | - df -h |
312995c2 | 76 | - if command -v ccache ; then ccache --show-stats ; fi |
197be697 DB |
77 | |
78 | ||
321e6ea5 | 79 | jobs: |
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" |
1de8e4c4 | 116 | - UNRELIABLE=true |
9c5941a9 | 117 | |
097aebd8 PMD |
118 | - name: "[ppc64] GCC check-tcg" |
119 | arch: ppc64le | |
e769905e | 120 | dist: focal |
9c5941a9 TH |
121 | addons: |
122 | apt_packages: | |
123 | - libaio-dev | |
124 | - libattr1-dev | |
125 | - libbrlapi-dev | |
51f5c849 | 126 | - libcacard-dev |
9c5941a9 | 127 | - libcap-ng-dev |
769897bd | 128 | - libfdt-dev |
9c5941a9 TH |
129 | - libgcrypt20-dev |
130 | - libgnutls28-dev | |
131 | - libgtk-3-dev | |
132 | - libiscsi-dev | |
133 | - liblttng-ust-dev | |
134 | - libncurses5-dev | |
135 | - libnfs-dev | |
9c5941a9 TH |
136 | - libpixman-1-dev |
137 | - libpng-dev | |
138 | - librados-dev | |
139 | - libsdl2-dev | |
140 | - libseccomp-dev | |
141 | - liburcu-dev | |
142 | - libusb-1.0-0-dev | |
143 | - libvdeplug-dev | |
144 | - libvte-2.91-dev | |
345d7053 | 145 | - ninja-build |
58a1e5b6 WSM |
146 | # Tests dependencies |
147 | - genisoimage | |
9c5941a9 TH |
148 | env: |
149 | - TEST_CMD="make check check-tcg V=1" | |
769897bd TH |
150 | - CONFIG="--disable-containers --enable-fdt=system |
151 | --target-list=ppc64-softmmu,ppc64le-linux-user" | |
9c5941a9 | 152 | |
097aebd8 PMD |
153 | - name: "[s390x] GCC check-tcg" |
154 | arch: s390x | |
e7b3b095 | 155 | dist: focal |
9c5941a9 TH |
156 | addons: |
157 | apt_packages: | |
158 | - libaio-dev | |
159 | - libattr1-dev | |
160 | - libbrlapi-dev | |
51f5c849 | 161 | - libcacard-dev |
9c5941a9 | 162 | - libcap-ng-dev |
769897bd | 163 | - libfdt-dev |
9c5941a9 TH |
164 | - libgcrypt20-dev |
165 | - libgnutls28-dev | |
166 | - libgtk-3-dev | |
167 | - libiscsi-dev | |
168 | - liblttng-ust-dev | |
169 | - libncurses5-dev | |
170 | - libnfs-dev | |
9c5941a9 TH |
171 | - libpixman-1-dev |
172 | - libpng-dev | |
173 | - librados-dev | |
174 | - libsdl2-dev | |
175 | - libseccomp-dev | |
176 | - liburcu-dev | |
177 | - libusb-1.0-0-dev | |
178 | - libvdeplug-dev | |
179 | - libvte-2.91-dev | |
345d7053 | 180 | - ninja-build |
58a1e5b6 WSM |
181 | # Tests dependencies |
182 | - genisoimage | |
9c5941a9 TH |
183 | env: |
184 | - TEST_CMD="make check check-tcg V=1" | |
0235540b TH |
185 | - CONFIG="--disable-containers |
186 | --target-list=hppa-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu" | |
1de8e4c4 | 187 | - UNRELIABLE=true |
31c8cc4f | 188 | script: |
31c8cc4f TH |
189 | - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$? |
190 | - | | |
191 | if [ "$BUILD_RC" -eq 0 ] ; then | |
882084a0 | 192 | mv pc-bios/s390-ccw/*.img qemu-bundle/usr/local/share/qemu ; |
31c8cc4f TH |
193 | ${TEST_CMD} ; |
194 | else | |
195 | $(exit $BUILD_RC); | |
196 | fi | |
61ac3dcc | 197 | |
27703590 | 198 | - name: "[s390x] GCC (other-system)" |
100a5efb | 199 | arch: s390x |
e7b3b095 | 200 | dist: focal |
100a5efb TH |
201 | addons: |
202 | apt_packages: | |
203 | - libaio-dev | |
204 | - libattr1-dev | |
51f5c849 | 205 | - libcacard-dev |
100a5efb | 206 | - libcap-ng-dev |
769897bd | 207 | - libfdt-dev |
100a5efb TH |
208 | - libgnutls28-dev |
209 | - libiscsi-dev | |
210 | - liblttng-ust-dev | |
211 | - liblzo2-dev | |
212 | - libncurses-dev | |
213 | - libnfs-dev | |
100a5efb TH |
214 | - libpixman-1-dev |
215 | - libsdl2-dev | |
216 | - libsdl2-image-dev | |
217 | - libseccomp-dev | |
218 | - libsnappy-dev | |
219 | - libzstd-dev | |
220 | - nettle-dev | |
345d7053 | 221 | - ninja-build |
100a5efb TH |
222 | # Tests dependencies |
223 | - genisoimage | |
224 | env: | |
0235540b TH |
225 | - CONFIG="--disable-containers --audio-drv-list=sdl --disable-user |
226 | --target-list=arm-softmmu,avr-softmmu,microblaze-softmmu,sh4eb-softmmu,sparc64-softmmu,xtensaeb-softmmu" | |
db727a14 | 227 | |
100a5efb TH |
228 | - name: "[s390x] GCC (user)" |
229 | arch: s390x | |
e7b3b095 | 230 | dist: focal |
100a5efb TH |
231 | addons: |
232 | apt_packages: | |
233 | - libgcrypt20-dev | |
e7b3b095 | 234 | - libglib2.0-dev |
100a5efb | 235 | - libgnutls28-dev |
345d7053 | 236 | - ninja-build |
e23130f9 VJ |
237 | - flex |
238 | - bison | |
100a5efb | 239 | env: |
0235540b | 240 | - TEST_CMD="make check check-tcg V=1" |
100a5efb | 241 | - CONFIG="--disable-containers --disable-system" |
db727a14 | 242 | |
aae8b87e | 243 | - name: "[s390x] Clang (disable-tcg)" |
41e1f0e2 | 244 | arch: s390x |
e7b3b095 | 245 | dist: focal |
a53be666 | 246 | compiler: clang-10 |
41e1f0e2 PMD |
247 | addons: |
248 | apt_packages: | |
249 | - libaio-dev | |
250 | - libattr1-dev | |
251 | - libbrlapi-dev | |
51f5c849 | 252 | - libcacard-dev |
41e1f0e2 | 253 | - libcap-ng-dev |
769897bd | 254 | - libfdt-dev |
41e1f0e2 PMD |
255 | - libgcrypt20-dev |
256 | - libgnutls28-dev | |
257 | - libgtk-3-dev | |
258 | - libiscsi-dev | |
259 | - liblttng-ust-dev | |
260 | - libncurses5-dev | |
261 | - libnfs-dev | |
41e1f0e2 PMD |
262 | - libpixman-1-dev |
263 | - libpng-dev | |
264 | - librados-dev | |
265 | - libsdl2-dev | |
266 | - libseccomp-dev | |
267 | - liburcu-dev | |
268 | - libusb-1.0-0-dev | |
269 | - libvdeplug-dev | |
270 | - libvte-2.91-dev | |
345d7053 | 271 | - ninja-build |
a53be666 | 272 | - clang-10 |
41e1f0e2 PMD |
273 | env: |
274 | - TEST_CMD="make check-unit" | |
769897bd TH |
275 | - CONFIG="--disable-containers --disable-tcg --enable-kvm --disable-tools |
276 | --enable-fdt=system --host-cc=clang --cxx=clang++" | |
1de8e4c4 | 277 | - UNRELIABLE=true |