]> git.ipfire.org Git - thirdparty/qemu.git/blame - .travis.yml
.travis.yml: Cache Python PIP packages
[thirdparty/qemu.git] / .travis.yml
CommitLineData
95310576
AB
1# The current Travis default is a VM based 16.04 Xenial on GCE
2# Additional builds with specific requirements for a full VM need to
3# be added as additional matrix: entries later on
4dist: xenial
fe863ab9 5language: c
fe863ab9
AB
6compiler:
7 - gcc
4bc629b2 8cache:
731cbb64 9 timeout: 1200
4bc629b2 10 ccache: true
6e189d78 11 pip: true
197be697
DB
12
13
692d162c
AB
14addons:
15 apt:
16 packages:
32265288 17 # Build dependencies
692d162c
AB
18 - libaio-dev
19 - libattr1-dev
20 - libbrlapi-dev
21 - libcap-ng-dev
7524a39d 22 - libgcc-4.8-dev
692d162c
AB
23 - libgnutls-dev
24 - libgtk-3-dev
25 - libiscsi-dev
26 - liblttng-ust-dev
27 - libncurses5-dev
d83414e1 28 - libnfs-dev
692d162c
AB
29 - libnss3-dev
30 - libpixman-1-dev
31 - libpng12-dev
32 - librados-dev
33 - libsdl1.2-dev
34 - libseccomp-dev
35 - libspice-protocol-dev
36 - libspice-server-dev
b10d49d7 37 - libssh-dev
692d162c
AB
38 - liburcu-dev
39 - libusb-1.0-0-dev
95310576 40 - libvte-2.91-dev
692d162c
AB
41 - sparse
42 - uuid-dev
0708e647 43 - gcovr
91fa7dd1
AB
44 homebrew:
45 packages:
91fa7dd1
AB
46 - glib
47 - pixman
db2b95d5 48 - gnu-sed
71451cff 49 update: true
692d162c 50
197be697 51
cb4c2536
PK
52# The channel name "irc.oftc.net#qemu" is encrypted against qemu/qemu
53# to prevent IRC notifications from forks. This was created using:
54# $ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu"
39d16d29
AB
55notifications:
56 irc:
57 channels:
cb4c2536 58 - secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1KWKjZe9KDTZWppWRYVwAwQMzVeSOsbbU4tRoJ6Pp+3qhH1Z0eGYR9ZgKYAoTumDFgSAYRp4IscKS8jkoedOqM="
39d16d29
AB
59 on_success: change
60 on_failure: always
197be697
DB
61
62
fe863ab9
AB
63env:
64 global:
ebf2ff65
PMD
65 - SRC_DIR="."
66 - BUILD_DIR="."
570f3c77 67 - BASE_CONFIG="--disable-docs --disable-tools"
e2576f9b 68 - TEST_CMD="make check -j3 V=1"
8c3daf97
AB
69 # This is broadly a list of "mainline" softmmu targets which have support across the major distros
70 - MAIN_SOFTMMU_TARGETS="aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
197be697 71
cb021cfe
AB
72git:
73 # we want to do this ourselves
74 submodules: false
197be697
DB
75
76
eebf2940 77before_script:
ebf2ff65 78 - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
570f3c77 79 - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; }
eebf2940 80script:
3a37c13f 81 - make -j3 && travis_retry ${TEST_CMD}
197be697
DB
82
83
fe863ab9 84matrix:
fe863ab9 85 include:
c21d7efc 86 - env:
c3c1874a 87 - CONFIG="--disable-system --static"
3e094234
DB
88
89
8c3daf97
AB
90 # we split the system builds as it takes a while to build them all
91 - env:
92 - CONFIG="--disable-user --target-list=${MAIN_SOFTMMU_TARGETS}"
93
94
c21d7efc 95 - env:
8c3daf97 96 - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}"
3e094234
DB
97
98
df2bb38e
AB
99 # Just build tools and run minimal unit and softfloat checks
100 - env:
101 - BASE_CONFIG="--enable-tools"
102 - CONFIG="--disable-user --disable-system"
103 - TEST_CMD="make check-unit check-softfloat -j3"
104
c21d7efc 105 - env:
4e6e7df6
AB
106 - CONFIG="--enable-debug --enable-debug-tcg --disable-user"
107
108
109 # TCG debug can be run just on it's own and is mostly agnostic to user/softmmu distinctions
110 - env:
111 - CONFIG="--enable-debug-tcg --disable-system"
3e094234
DB
112
113
c21d7efc 114 - env:
aec2927d 115 - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-libusb --disable-replication --target-list=${MAIN_SOFTMMU_TARGETS}"
3e094234
DB
116
117
2f6c2526 118 # Module builds are mostly of interest to major distros
c21d7efc 119 - env:
8c3daf97 120 - CONFIG="--enable-modules --target-list=${MAIN_SOFTMMU_TARGETS}"
3e094234
DB
121
122
f3908ff7
AB
123 # Alternate coroutines implementations are only really of interest to KVM users
124 # However we can't test against KVM on Travis so we can only run unit tests
c21d7efc 125 - env:
f3908ff7
AB
126 - CONFIG="--with-coroutine=ucontext --disable-tcg"
127 - TEST_CMD="make check-unit -j3 V=1"
3e094234
DB
128
129
c21d7efc 130 - env:
f3908ff7
AB
131 - CONFIG="--with-coroutine=sigaltstack --disable-tcg"
132 - TEST_CMD="make check-unit -j3 V=1"
3e094234
DB
133
134
956d4506 135 # Check we can build docs and tools (out of tree)
570f3c77 136 - env:
956d4506 137 - BUILD_DIR="out-of-tree/build/dir" SRC_DIR="../../.."
570f3c77
AB
138 - BASE_CONFIG="--enable-tools --enable-docs"
139 - CONFIG="--target-list=x86_64-softmmu,aarch64-linux-user"
140 addons:
141 apt:
142 packages:
143 - python-sphinx
144 - texinfo
145 - perl
146
197be697 147
ae6d692d 148 # Test with Clang for compile portability (Travis uses clang-5.0)
c21d7efc
DB
149 - env:
150 - CONFIG="--disable-system"
ae6d692d 151 compiler: clang
197be697
DB
152
153
c21d7efc 154 - env:
8c3daf97
AB
155 - CONFIG="--disable-user --target-list=${MAIN_SOFTMMU_TARGETS}"
156 compiler: clang
157
158
7831147e
AB
159 - env:
160 - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS} "
161 compiler: clang
162 before_script:
163 - ./configure ${CONFIG} --extra-cflags="-fsanitize=undefined -Werror" || { cat config.log && exit 1; }
164
165
8c3daf97
AB
166 - env:
167 - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}"
d9a6b013 168 compiler: clang
197be697
DB
169
170
6c933291 171 # gprof/gcov are GCC features
c21d7efc 172 - env:
8c3daf97 173 - CONFIG="--enable-gprof --enable-gcov --disable-pie --target-list=${MAIN_SOFTMMU_TARGETS}"
0708e647
AB
174 after_success:
175 - ${SRC_DIR}/scripts/travis/coverage-summary.sh
197be697
DB
176
177
20885b5b
PB
178 # We manually include builds which we disable "make check" for
179 - env:
386dc514 180 - CONFIG="--without-default-devices --disable-user"
20885b5b
PB
181 - TEST_CMD=""
182
183
6c933291 184 # We manually include builds which we disable "make check" for
c21d7efc
DB
185 - env:
186 - CONFIG="--enable-debug --enable-tcg-interpreter"
187 - TEST_CMD=""
197be697
DB
188
189
f8309de9 190 # We don't need to exercise every backend with every front-end
c21d7efc
DB
191 - env:
192 - CONFIG="--enable-trace-backends=log,simple,syslog --disable-system"
193 - TEST_CMD=""
197be697
DB
194
195
c21d7efc
DB
196 - env:
197 - CONFIG="--enable-trace-backends=ftrace --target-list=x86_64-softmmu"
198 - TEST_CMD=""
197be697
DB
199
200
c21d7efc
DB
201 - env:
202 - CONFIG="--enable-trace-backends=ust --target-list=x86_64-softmmu"
203 - TEST_CMD=""
197be697
DB
204
205
adcf9683 206 # MacOSX builds
c21d7efc 207 - env:
8c3daf97 208 - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS}"
1d002037 209 os: osx
adcf9683
AB
210 osx_image: xcode9.4
211 compiler: clang
197be697
DB
212
213
cd7507cb
PMD
214 - env:
215 - CONFIG="--target-list=i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu,x86_64-softmmu"
216 os: osx
217 osx_image: xcode10.2
218 compiler: clang
219
220
ae6d692d 221 # Python builds
c21d7efc
DB
222 - env:
223 - CONFIG="--target-list=x86_64-softmmu"
53fefde4 224 language: python
8e73a3c5 225 python:
53fefde4 226 - "3.4"
197be697
DB
227
228
c21d7efc
DB
229 - env:
230 - CONFIG="--target-list=x86_64-softmmu"
53fefde4 231 language: python
8e73a3c5
DB
232 python:
233 - "3.6"
197be697
DB
234
235
aa983ff6 236 # Acceptance (Functional) tests
c21d7efc 237 - env:
25311649 238 - CONFIG="--python=/usr/bin/python3 --target-list=x86_64-softmmu,mips-softmmu,mips64el-softmmu,aarch64-softmmu,arm-softmmu,s390x-softmmu,alpha-softmmu,ppc64-softmmu,m68k-softmmu"
0b98c20a 239 - TEST_CMD="make check-acceptance"
c21f30eb
CR
240 after_failure:
241 - cat tests/results/latest/job.log
aa983ff6
CR
242 addons:
243 apt:
244 packages:
25311649 245 - python3-pil
aa983ff6 246 - python3-pip
95310576 247 - python3.5-venv
25311649
PMD
248 - tesseract-ocr
249 - tesseract-ocr-eng
250
251
32265288
AB
252 # Using newer GCC with sanitizers
253 - addons:
254 apt:
ac07ffc6 255 update: true
32265288
AB
256 sources:
257 # PPAs for newer toolchains
258 - ubuntu-toolchain-r-test
259 packages:
260 # Extra toolchains
3998c25e
AB
261 - gcc-9
262 - g++-9
32265288
AB
263 # Build dependencies
264 - libaio-dev
265 - libattr1-dev
266 - libbrlapi-dev
267 - libcap-ng-dev
268 - libgnutls-dev
269 - libgtk-3-dev
270 - libiscsi-dev
271 - liblttng-ust-dev
272 - libnfs-dev
273 - libncurses5-dev
274 - libnss3-dev
275 - libpixman-1-dev
276 - libpng12-dev
277 - librados-dev
278 - libsdl1.2-dev
279 - libseccomp-dev
280 - libspice-protocol-dev
281 - libspice-server-dev
b10d49d7 282 - libssh-dev
32265288
AB
283 - liburcu-dev
284 - libusb-1.0-0-dev
95310576 285 - libvte-2.91-dev
32265288
AB
286 - sparse
287 - uuid-dev
288 language: generic
289 compiler: none
290 env:
3998c25e
AB
291 - COMPILER_NAME=gcc CXX=g++-9 CC=gcc-9
292 - CONFIG="--cc=gcc-9 --cxx=g++-9 --disable-pie --disable-linux-user"
32265288
AB
293 - TEST_CMD=""
294 before_script:
3998c25e 295 - ./configure ${CONFIG} --extra-cflags="-g3 -O0 -Wno-error=stringop-truncation -fsanitize=thread -fuse-ld=gold" || { cat config.log && exit 1; }
197be697
DB
296
297
dab3a7c0 298 # Run check-tcg against linux-user
65b26da4 299 - env:
570f3c77 300 - CONFIG="--disable-system"
e2576f9b 301 - TEST_CMD="make -j3 check-tcg V=1"
dab3a7c0
AB
302
303 # Run check-tcg against softmmu targets
304 - env:
591ff1ff 305 - CONFIG="--target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu"
dab3a7c0 306 - TEST_CMD="make -j3 check-tcg V=1"