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