blob: 564be50a3c1262f489ea9f5a3232b5d500b30443 [file] [log] [blame]
Alex Bennée95310572019-01-09 10:42:00 +00001# 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
Wainer dos Santos Moschetta321e6ea2020-02-25 12:46:57 +00004os: linux
Alex Bennée95310572019-01-09 10:42:00 +00005dist: xenial
Alex Bennéefe863ab2013-11-06 10:43:37 +00006language: c
Alex Bennéefe863ab2013-11-06 10:43:37 +00007compiler:
8 - gcc
Philippe Mathieu-Daudé4bc629b2019-09-03 15:26:40 +02009cache:
Philippe Mathieu-Daudé5ef9c532019-09-03 15:26:46 +020010 # There is one cache per branch and compiler version.
11 # characteristics of each job are used to identify the cache:
Alex Bennée22a23192020-05-01 12:15:03 +010012 # - OS name (currently only linux)
Philippe Mathieu-Daudé5ef9c532019-09-03 15:26:46 +020013 # - OS distribution (for Linux, xenial, trusty, or precise)
Philippe Mathieu-Daudé5ef9c532019-09-03 15:26:46 +020014 # - Names and values of visible environment variables set in .travis.yml or Settings panel
Philippe Mathieu-Daudé731cbb62019-09-03 15:26:41 +020015 timeout: 1200
Philippe Mathieu-Daudé4bc629b2019-09-03 15:26:40 +020016 ccache: true
Philippe Mathieu-Daudé6e189d72019-09-03 15:26:42 +020017 pip: true
Philippe Mathieu-Daudéc1073e42019-09-03 15:26:43 +020018 directories:
19 - $HOME/avocado/data/cache
Daniel P. Berrangé197be692019-01-09 16:31:06 +000020
21
Alex Bennée692d1622016-01-14 19:21:16 +000022addons:
23 apt:
24 packages:
Alex Bennée32265282016-09-30 22:31:03 +010025 # Build dependencies
Alex Bennée692d1622016-01-14 19:21:16 +000026 - libaio-dev
27 - libattr1-dev
28 - libbrlapi-dev
29 - libcap-ng-dev
Philippe Mathieu-Daudé7524a392018-02-12 15:46:50 -030030 - libgcc-4.8-dev
Thomas Huth3c7a8b42019-10-09 19:06:59 +020031 - libgnutls28-dev
Alex Bennée692d1622016-01-14 19:21:16 +000032 - libgtk-3-dev
33 - libiscsi-dev
34 - liblttng-ust-dev
35 - libncurses5-dev
Marc-André Lureaud83414e2018-01-16 16:11:52 +010036 - libnfs-dev
Alex Bennée692d1622016-01-14 19:21:16 +000037 - libnss3-dev
38 - libpixman-1-dev
Thomas Huth3c7a8b42019-10-09 19:06:59 +020039 - libpng-dev
Alex Bennée692d1622016-01-14 19:21:16 +000040 - librados-dev
Thomas Huth241e7952019-10-09 19:06:58 +020041 - libsdl2-dev
42 - libsdl2-image-dev
Alex Bennée692d1622016-01-14 19:21:16 +000043 - libseccomp-dev
44 - libspice-protocol-dev
45 - libspice-server-dev
Pino Toscanob10d49d2019-06-20 22:08:40 +020046 - libssh-dev
Alex Bennée692d1622016-01-14 19:21:16 +000047 - liburcu-dev
48 - libusb-1.0-0-dev
Thomas Huth7c1dd4d2019-10-09 19:06:57 +020049 - libvdeplug-dev
Alex Bennée95310572019-01-09 10:42:00 +000050 - libvte-2.91-dev
Juan Quintela3a678482019-12-17 21:15:24 +010051 - libzstd-dev
Alex Bennée692d1622016-01-14 19:21:16 +000052 - sparse
53 - uuid-dev
Alex Bennée0708e642018-06-20 12:00:07 +010054 - gcovr
Wainer dos Santos Moschetta58a1e5b2020-02-03 09:09:19 +000055 # Tests dependencies
56 - genisoimage
Alex Bennée692d1622016-01-14 19:21:16 +000057
Daniel P. Berrangé197be692019-01-09 16:31:06 +000058
Pranith Kumarcb4c2532016-06-27 14:13:22 -040059# The channel name "irc.oftc.net#qemu" is encrypted against qemu/qemu
60# to prevent IRC notifications from forks. This was created using:
61# $ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu"
Alex Bennée39d16d22014-03-12 14:13:53 +000062notifications:
63 irc:
64 channels:
Pranith Kumarcb4c2532016-06-27 14:13:22 -040065 - secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1KWKjZe9KDTZWppWRYVwAwQMzVeSOsbbU4tRoJ6Pp+3qhH1Z0eGYR9ZgKYAoTumDFgSAYRp4IscKS8jkoedOqM="
Alex Bennée39d16d22014-03-12 14:13:53 +000066 on_success: change
67 on_failure: always
Daniel P. Berrangé197be692019-01-09 16:31:06 +000068
69
Alex Bennéefe863ab2013-11-06 10:43:37 +000070env:
71 global:
Paolo Bonzinibc4486f2019-12-11 15:33:49 +010072 - SRC_DIR=".."
73 - BUILD_DIR="build"
Alex Bennée570f3c72019-02-01 17:12:29 +000074 - BASE_CONFIG="--disable-docs --disable-tools"
Alex Bennée4f46afd2020-02-03 09:09:29 +000075 - TEST_BUILD_CMD=""
Alex Bennée05273a42019-11-07 10:47:03 +000076 - TEST_CMD="make check V=1"
Alex Bennée8c3daf92019-03-19 12:09:49 +000077 # This is broadly a list of "mainline" softmmu targets which have support across the major distros
Alex Bennée6e988882019-11-12 18:31:19 +000078 - MAIN_SOFTMMU_TARGETS="aarch64-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
Philippe Mathieu-Daudébcfbf0d2019-09-03 15:26:44 +020079 - CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime"
80 - CCACHE_MAXSIZE=1G
Philippe Mathieu-Daudé2dbd39c2020-03-16 17:21:32 +000081 - G_MESSAGES_DEBUG=error
Philippe Mathieu-Daudébcfbf0d2019-09-03 15:26:44 +020082
Daniel P. Berrangé197be692019-01-09 16:31:06 +000083
Alex Bennéecb021cf2014-09-24 11:13:55 +010084git:
85 # we want to do this ourselves
86 submodules: false
Daniel P. Berrangé197be692019-01-09 16:31:06 +000087
Alex Bennéeb3165c82020-02-03 09:09:25 +000088# Common first phase for all steps
89before_install:
Thomas Huth312995c2019-10-09 19:07:00 +020090 - if command -v ccache ; then ccache --zero-stats ; fi
Alex Bennée0a7c0ae2020-02-03 09:09:26 +000091 - export JOBS=$(($(getconf _NPROCESSORS_ONLN) + 1))
92 - echo "=== Using ${JOBS} simultaneous jobs ==="
Alex Bennéeb3165c82020-02-03 09:09:25 +000093
94# Configure step - may be overridden
95before_script:
Philippe Mathieu-Daudéebf2ff62018-06-21 09:26:37 -030096 - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
Alex Bennée570f3c72019-02-01 17:12:29 +000097 - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; }
Alex Bennéeb3165c82020-02-03 09:09:25 +000098
99# Main build & test - rarely overridden - controlled by TEST_CMD
Alex Bennéeeebf2942014-09-24 11:13:54 +0100100script:
Alex Bennée0a7c0ae2020-02-03 09:09:26 +0000101 - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
Alex Bennée4f46afd2020-02-03 09:09:29 +0000102 - |
103 if [ "$BUILD_RC" -eq 0 ] && [ -n "$TEST_BUILD_CMD" ]; then
104 ${TEST_BUILD_CMD} || BUILD_RC=$?
105 else
106 $(exit $BUILD_RC);
107 fi
Alex Bennéeec49faa2020-02-03 09:09:30 +0000108 - |
109 if [ "$BUILD_RC" -eq 0 ] ; then
110 ${TEST_CMD} ;
111 else
112 $(exit $BUILD_RC);
113 fi
Philippe Mathieu-Daudébcfbf0d2019-09-03 15:26:44 +0200114after_script:
Alex Bennée4f8bde52020-05-01 12:15:02 +0100115 - df -h
Thomas Huth312995c2019-10-09 19:07:00 +0200116 - if command -v ccache ; then ccache --show-stats ; fi
Daniel P. Berrangé197be692019-01-09 16:31:06 +0000117
118
Wainer dos Santos Moschetta321e6ea2020-02-25 12:46:57 +0000119jobs:
Alex Bennéefe863ab2013-11-06 10:43:37 +0000120 include:
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000121 - name: "GCC static (user)"
122 env:
Alex Bennéec3c18742019-06-17 16:35:22 +0100123 - CONFIG="--disable-system --static"
Philippe Mathieu-Daudé7d183c52019-09-03 15:26:48 +0200124 - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
Daniel P. Berrangé3e094232019-01-09 16:31:07 +0000125
126
Alex Bennée8c3daf92019-03-19 12:09:49 +0000127 # we split the system builds as it takes a while to build them all
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000128 - name: "GCC (main-softmmu)"
129 env:
Alex Bennée8c3daf92019-03-19 12:09:49 +0000130 - CONFIG="--disable-user --target-list=${MAIN_SOFTMMU_TARGETS}"
Philippe Mathieu-Daudé7d183c52019-09-03 15:26:48 +0200131 - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
Alex Bennée8c3daf92019-03-19 12:09:49 +0000132
133
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000134 - name: "GCC (other-softmmu)"
135 env:
136 - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}"
Philippe Mathieu-Daudé7d183c52019-09-03 15:26:48 +0200137 - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
Daniel P. Berrangé3e094232019-01-09 16:31:07 +0000138
139
Alex Bennéedf2bb382019-02-28 10:15:29 +0000140 # Just build tools and run minimal unit and softfloat checks
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000141 - name: "GCC check-softfloat (user)"
142 env:
Alex Bennéedf2bb382019-02-28 10:15:29 +0000143 - BASE_CONFIG="--enable-tools"
144 - CONFIG="--disable-user --disable-system"
Alex Bennée0a7c0ae2020-02-03 09:09:26 +0000145 - TEST_CMD="make check-unit check-softfloat -j${JOBS}"
Philippe Mathieu-Daudé7d183c52019-09-03 15:26:48 +0200146 - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
147
Alex Bennéedf2bb382019-02-28 10:15:29 +0000148
Alex Bennée138382c2019-10-02 11:23:29 +0100149 # --enable-debug implies --enable-debug-tcg, also runs quite a bit slower
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000150 - name: "GCC debug (main-softmmu)"
151 env:
Alex Bennée138382c2019-10-02 11:23:29 +0100152 - CONFIG="--enable-debug --target-list=${MAIN_SOFTMMU_TARGETS}"
Philippe Mathieu-Daudé8fb90e32019-09-03 15:26:47 +0200153 - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug"
Alex Bennée4e6e7df2019-02-20 11:28:25 +0000154
155
Alex Bennée138382c2019-10-02 11:23:29 +0100156 # TCG debug can be run just on its own and is mostly agnostic to user/softmmu distinctions
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000157 - name: "GCC debug (user)"
158 env:
Alex Bennée4e6e7df2019-02-20 11:28:25 +0000159 - CONFIG="--enable-debug-tcg --disable-system"
Alex Bennée19633df2019-10-24 17:02:09 +0100160 - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg"
Daniel P. Berrangé3e094232019-01-09 16:31:07 +0000161
162
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000163 - name: "GCC some libs disabled (main-softmmu)"
164 env:
Alex Bennéeaec29272019-03-21 12:42:56 +0000165 - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-libusb --disable-replication --target-list=${MAIN_SOFTMMU_TARGETS}"
Daniel P. Berrangé3e094232019-01-09 16:31:07 +0000166
167
Alex Bennée2f6c2522019-03-08 15:52:13 +0000168 # Module builds are mostly of interest to major distros
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000169 - name: "GCC modules (main-softmmu)"
170 env:
Alex Bennée8c3daf92019-03-19 12:09:49 +0000171 - CONFIG="--enable-modules --target-list=${MAIN_SOFTMMU_TARGETS}"
Philippe Mathieu-Daudé7d183c52019-09-03 15:26:48 +0200172 - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
Daniel P. Berrangé3e094232019-01-09 16:31:07 +0000173
174
Alex Bennéef3908ff2019-02-06 15:54:08 +0000175 # Alternate coroutines implementations are only really of interest to KVM users
176 # However we can't test against KVM on Travis so we can only run unit tests
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000177 - name: "check-unit coroutine=ucontext"
178 env:
Alex Bennéef3908ff2019-02-06 15:54:08 +0000179 - CONFIG="--with-coroutine=ucontext --disable-tcg"
Alex Bennée0a7c0ae2020-02-03 09:09:26 +0000180 - TEST_CMD="make check-unit -j${JOBS} V=1"
Daniel P. Berrangé3e094232019-01-09 16:31:07 +0000181
182
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000183 - name: "check-unit coroutine=sigaltstack"
184 env:
Alex Bennéef3908ff2019-02-06 15:54:08 +0000185 - CONFIG="--with-coroutine=sigaltstack --disable-tcg"
Alex Bennée0a7c0ae2020-02-03 09:09:26 +0000186 - TEST_CMD="make check-unit -j${JOBS} V=1"
Daniel P. Berrangé3e094232019-01-09 16:31:07 +0000187
188
Alex Bennée956d4502019-03-08 15:48:08 +0000189 # Check we can build docs and tools (out of tree)
Alex Bennée204b30e2020-02-03 09:09:24 +0000190 - name: "tools and docs (bionic)"
191 dist: bionic
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000192 env:
Alex Bennée956d4502019-03-08 15:48:08 +0000193 - BUILD_DIR="out-of-tree/build/dir" SRC_DIR="../../.."
Alex Bennée570f3c72019-02-01 17:12:29 +0000194 - BASE_CONFIG="--enable-tools --enable-docs"
195 - CONFIG="--target-list=x86_64-softmmu,aarch64-linux-user"
Philippe Mathieu-Daudé7d183c52019-09-03 15:26:48 +0200196 - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
Alex Bennée570f3c72019-02-01 17:12:29 +0000197 addons:
198 apt:
199 packages:
Alex Bennée68e5b852020-02-04 10:51:42 +0000200 - python3-sphinx
Alex Bennée570f3c72019-02-01 17:12:29 +0000201 - texinfo
202 - perl
203
Daniel P. Berrangé197be692019-01-09 16:31:06 +0000204
Alex Bennéeae6d6922018-05-29 18:14:04 +0100205 # Test with Clang for compile portability (Travis uses clang-5.0)
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000206 - name: "Clang (user)"
207 env:
Thomas Huth6f83cf82020-05-20 15:05:29 +0100208 - CONFIG="--disable-system --host-cc=clang --cxx=clang++"
Philippe Mathieu-Daudée2bef012019-09-03 15:26:49 +0200209 - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default"
Alex Bennéeae6d6922018-05-29 18:14:04 +0100210 compiler: clang
Daniel P. Berrangé197be692019-01-09 16:31:06 +0000211
212
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000213 - name: "Clang (main-softmmu)"
214 env:
Thomas Huth6f83cf82020-05-20 15:05:29 +0100215 - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS}
216 --host-cc=clang --cxx=clang++"
Alex Bennéeb08c2ae2019-10-22 14:07:40 +0100217 - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-sanitize"
Alex Bennée78311472019-05-28 19:21:19 +0100218 compiler: clang
219 before_script:
Paolo Bonzinibc4486f2019-12-11 15:33:49 +0100220 - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
221 - ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-fsanitize=undefined -Werror" || { cat config.log && exit 1; }
Alex Bennée78311472019-05-28 19:21:19 +0100222
223
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000224 - name: "Clang (other-softmmu)"
225 env:
Thomas Huth6f83cf82020-05-20 15:05:29 +0100226 - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}
227 --host-cc=clang --cxx=clang++"
Philippe Mathieu-Daudée2bef012019-09-03 15:26:49 +0200228 - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default"
Daniel P. Berranged9a6b012016-10-27 15:23:45 +0200229 compiler: clang
Daniel P. Berrangé197be692019-01-09 16:31:06 +0000230
231
Alex Bennée6c933292016-03-15 16:12:58 +0000232 # gprof/gcov are GCC features
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000233 - name: "GCC gprof/gcov"
234 env:
Alex Bennée8c3daf92019-03-19 12:09:49 +0000235 - CONFIG="--enable-gprof --enable-gcov --disable-pie --target-list=${MAIN_SOFTMMU_TARGETS}"
Alex Bennée0708e642018-06-20 12:00:07 +0100236 after_success:
237 - ${SRC_DIR}/scripts/travis/coverage-summary.sh
Daniel P. Berrangé197be692019-01-09 16:31:06 +0000238
239
Alex Bennée6c933292016-03-15 16:12:58 +0000240 # We manually include builds which we disable "make check" for
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000241 - name: "GCC without-default-devices (softmmu)"
242 env:
Alex Bennée386dc512019-03-19 12:12:52 +0000243 - CONFIG="--without-default-devices --disable-user"
Philippe Mathieu-Daudé7d183c52019-09-03 15:26:48 +0200244 - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
Paolo Bonzini20885b52019-01-31 15:57:53 +0100245 - TEST_CMD=""
246
247
Thomas Huth3edaa992019-12-04 09:31:33 +0100248 # Check the TCG interpreter (TCI)
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000249 - name: "GCC TCI"
250 env:
Thomas Huth3edaa992019-12-04 09:31:33 +0100251 - CONFIG="--enable-debug-tcg --enable-tcg-interpreter --disable-kvm --disable-containers
252 --target-list=alpha-softmmu,arm-softmmu,hppa-softmmu,m68k-softmmu,microblaze-softmmu,moxie-softmmu,ppc-softmmu,s390x-softmmu,x86_64-softmmu"
253 - TEST_CMD="make check-qtest check-tcg V=1"
Daniel P. Berrangé197be692019-01-09 16:31:06 +0000254
255
Alex Bennéef8309de2018-06-14 11:28:20 +0100256 # We don't need to exercise every backend with every front-end
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000257 - name: "GCC trace log,simple,syslog (user)"
258 env:
Daniel P. Berrangéc21d7ef2019-01-09 16:31:08 +0000259 - CONFIG="--enable-trace-backends=log,simple,syslog --disable-system"
260 - TEST_CMD=""
Daniel P. Berrangé197be692019-01-09 16:31:06 +0000261
262
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000263 - name: "GCC trace ftrace (x86_64-softmmu)"
264 env:
Daniel P. Berrangéc21d7ef2019-01-09 16:31:08 +0000265 - CONFIG="--enable-trace-backends=ftrace --target-list=x86_64-softmmu"
266 - TEST_CMD=""
Daniel P. Berrangé197be692019-01-09 16:31:06 +0000267
268
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000269 - name: "GCC trace ust (x86_64-softmmu)"
270 env:
Daniel P. Berrangéc21d7ef2019-01-09 16:31:08 +0000271 - CONFIG="--enable-trace-backends=ust --target-list=x86_64-softmmu"
272 - TEST_CMD=""
Daniel P. Berrangé197be692019-01-09 16:31:06 +0000273
274
Alex Bennéeae6d6922018-05-29 18:14:04 +0100275 # Python builds
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000276 - name: "GCC Python 3.5 (x86_64-softmmu)"
277 env:
Daniel P. Berrangéc21d7ef2019-01-09 16:31:08 +0000278 - CONFIG="--target-list=x86_64-softmmu"
Philippe Mathieu-Daudé7d183c52019-09-03 15:26:48 +0200279 - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
Cleber Rosa53fefde2018-11-09 10:07:09 -0500280 language: python
Wainer dos Santos Moschetta321e6ea2020-02-25 12:46:57 +0000281 python: 3.5
Daniel P. Berrangé197be692019-01-09 16:31:06 +0000282
283
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000284 - name: "GCC Python 3.6 (x86_64-softmmu)"
285 env:
Daniel P. Berrangéc21d7ef2019-01-09 16:31:08 +0000286 - CONFIG="--target-list=x86_64-softmmu"
Philippe Mathieu-Daudé7d183c52019-09-03 15:26:48 +0200287 - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
Cleber Rosa53fefde2018-11-09 10:07:09 -0500288 language: python
Wainer dos Santos Moschetta321e6ea2020-02-25 12:46:57 +0000289 python: 3.6
Daniel P. Berrangé197be692019-01-09 16:31:06 +0000290
291
Cleber Rosaaa983ff2018-10-18 11:31:34 -0400292 # Acceptance (Functional) tests
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000293 - name: "GCC check-acceptance"
Alex Bennéec2e09ad2020-03-03 15:06:22 +0000294 dist: bionic
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000295 env:
Cleber Rosa6fd52d62020-03-17 10:16:53 -0400296 - CONFIG="--enable-tools --target-list=aarch64-softmmu,alpha-softmmu,arm-softmmu,m68k-softmmu,microblaze-softmmu,mips-softmmu,mips64el-softmmu,nios2-softmmu,or1k-softmmu,ppc-softmmu,ppc64-softmmu,s390x-softmmu,sparc-softmmu,x86_64-softmmu,xtensa-softmmu"
Eduardo Habkost0b98c202019-06-18 11:10:43 -0300297 - TEST_CMD="make check-acceptance"
Philippe Mathieu-Daudéa41f1672020-04-01 21:27:53 +0200298 - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-acceptance"
Wainer dos Santos Moschetta67892c92019-12-30 15:43:26 -0300299 after_script:
300 - python3 -c 'import json; r = json.load(open("tests/results/latest/results.json")); [print(t["logfile"]) for t in r["tests"] if t["status"] not in ("PASS", "SKIP")]' | xargs cat
Philippe Mathieu-Daudéa41f1672020-04-01 21:27:53 +0200301 - du -chs $HOME/avocado/data/cache
Cleber Rosaaa983ff2018-10-18 11:31:34 -0400302 addons:
303 apt:
304 packages:
Philippe Mathieu-Daudé25311642019-08-13 15:49:20 +0200305 - python3-pil
Cleber Rosaaa983ff2018-10-18 11:31:34 -0400306 - python3-pip
Alex Bennéec2e09ad2020-03-03 15:06:22 +0000307 - python3-numpy
308 - python3-opencv
309 - python3-venv
Liam Merwick8a837082020-02-05 14:56:02 +0000310 - rpm2cpio
Philippe Mathieu-Daudé25311642019-08-13 15:49:20 +0200311 - tesseract-ocr
312 - tesseract-ocr-eng
313
314
Alex Bennée32265282016-09-30 22:31:03 +0100315 # Using newer GCC with sanitizers
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000316 - name: "GCC9 with sanitizers (softmmu)"
317 addons:
Alex Bennée32265282016-09-30 22:31:03 +0100318 apt:
Alex Bennéeac07ffc2018-05-30 09:09:31 +0100319 update: true
Alex Bennée32265282016-09-30 22:31:03 +0100320 sources:
321 # PPAs for newer toolchains
322 - ubuntu-toolchain-r-test
323 packages:
324 # Extra toolchains
Alex Bennée3998c252019-05-28 19:13:08 +0100325 - gcc-9
326 - g++-9
Alex Bennée32265282016-09-30 22:31:03 +0100327 # Build dependencies
328 - libaio-dev
329 - libattr1-dev
330 - libbrlapi-dev
331 - libcap-ng-dev
332 - libgnutls-dev
333 - libgtk-3-dev
334 - libiscsi-dev
335 - liblttng-ust-dev
336 - libnfs-dev
337 - libncurses5-dev
338 - libnss3-dev
339 - libpixman-1-dev
340 - libpng12-dev
341 - librados-dev
Thomas Huth241e7952019-10-09 19:06:58 +0200342 - libsdl2-dev
343 - libsdl2-image-dev
Alex Bennée32265282016-09-30 22:31:03 +0100344 - libseccomp-dev
345 - libspice-protocol-dev
346 - libspice-server-dev
Pino Toscanob10d49d2019-06-20 22:08:40 +0200347 - libssh-dev
Alex Bennée32265282016-09-30 22:31:03 +0100348 - liburcu-dev
349 - libusb-1.0-0-dev
Alex Bennée95310572019-01-09 10:42:00 +0000350 - libvte-2.91-dev
Alex Bennée32265282016-09-30 22:31:03 +0100351 - sparse
352 - uuid-dev
353 language: generic
354 compiler: none
355 env:
Alex Bennée3998c252019-05-28 19:13:08 +0100356 - COMPILER_NAME=gcc CXX=g++-9 CC=gcc-9
357 - CONFIG="--cc=gcc-9 --cxx=g++-9 --disable-pie --disable-linux-user"
Alex Bennée32265282016-09-30 22:31:03 +0100358 - TEST_CMD=""
359 before_script:
Paolo Bonzinibc4486f2019-12-11 15:33:49 +0100360 - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
Paolo Bonzinidb5adea2019-12-11 15:34:27 +0100361 - ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-g3 -O0 -Wno-error=stringop-truncation -fsanitize=thread" --extra-ldflags="-fuse-ld=gold" || { cat config.log && exit 1; }
Daniel P. Berrangé197be692019-01-09 16:31:06 +0000362
363
Alex Bennéedab3a7c2019-02-28 10:18:43 +0000364 # Run check-tcg against linux-user
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000365 - name: "GCC check-tcg (user)"
366 env:
Alex Bennée2efabbe2019-10-23 17:47:51 +0100367 - CONFIG="--disable-system --enable-debug-tcg"
Alex Bennée73217f32020-02-03 09:09:32 +0000368 - TEST_BUILD_CMD="make build-tcg"
Alex Bennée4f46afd2020-02-03 09:09:29 +0000369 - TEST_CMD="make check-tcg"
Alex Bennée19633df2019-10-24 17:02:09 +0100370 - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg"
Philippe Mathieu-Daudé7d183c52019-09-03 15:26:48 +0200371
Alex Bennéedab3a7c2019-02-28 10:18:43 +0000372
Alex Bennée4fbddb52019-10-11 16:41:16 +0100373 # Run check-tcg against linux-user (with plugins)
374 # we skip sparc64-linux-user until it has been fixed somewhat
Alex Bennée7986f482020-02-03 09:09:31 +0000375 # we skip cris-linux-user as it doesn't use the common run loop
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000376 - name: "GCC plugins check-tcg (user)"
377 env:
Alex Bennée7986f482020-02-03 09:09:31 +0000378 - CONFIG="--disable-system --enable-plugins --enable-debug-tcg --target-list-exclude=sparc64-linux-user,cris-linux-user"
Alex Bennée73217f32020-02-03 09:09:32 +0000379 - TEST_BUILD_CMD="make build-tcg"
Alex Bennée4f46afd2020-02-03 09:09:29 +0000380 - TEST_CMD="make check-tcg"
Alex Bennée19633df2019-10-24 17:02:09 +0100381 - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg"
Daniel P. Berrangée2576f92019-01-09 16:31:13 +0000382
Alex Bennéedab3a7c2019-02-28 10:18:43 +0000383
384 # Run check-tcg against softmmu targets
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000385 - name: "GCC check-tcg (some-softmmu)"
386 env:
Alex Bennée2efabbe2019-10-23 17:47:51 +0100387 - CONFIG="--enable-debug-tcg --target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu"
Alex Bennéec9331e92020-02-25 12:46:58 +0000388 - TEST_BUILD_CMD="make build-tcg"
Alex Bennée4f46afd2020-02-03 09:09:29 +0000389 - TEST_CMD="make check-tcg"
Alex Bennée19633df2019-10-24 17:02:09 +0100390 - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg"
Philippe Mathieu-Daudé61ac3dc2019-10-07 18:04:49 +0200391
392
Alex Bennée4fbddb52019-10-11 16:41:16 +0100393 # Run check-tcg against softmmu targets (with plugins)
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000394 - name: "GCC plugins check-tcg (some-softmmu)"
395 env:
Alex Bennée19633df2019-10-24 17:02:09 +0100396 - CONFIG="--enable-plugins --enable-debug-tcg --target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu"
Alex Bennéec9331e92020-02-25 12:46:58 +0000397 - TEST_BUILD_CMD="make build-tcg"
Alex Bennée4f46afd2020-02-03 09:09:29 +0000398 - TEST_CMD="make check-tcg"
Alex Bennée19633df2019-10-24 17:02:09 +0100399 - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg"
Philippe Mathieu-Daudé61ac3dc2019-10-07 18:04:49 +0200400
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000401 - name: "[aarch64] GCC check-tcg"
402 arch: arm64
Thomas Huth9c5941a2019-12-04 16:46:18 +0100403 dist: xenial
404 addons:
405 apt_packages:
406 - libaio-dev
407 - libattr1-dev
408 - libbrlapi-dev
409 - libcap-ng-dev
410 - libgcrypt20-dev
411 - libgnutls28-dev
412 - libgtk-3-dev
413 - libiscsi-dev
414 - liblttng-ust-dev
415 - libncurses5-dev
416 - libnfs-dev
417 - libnss3-dev
418 - libpixman-1-dev
419 - libpng-dev
420 - librados-dev
421 - libsdl2-dev
422 - libseccomp-dev
423 - liburcu-dev
424 - libusb-1.0-0-dev
425 - libvdeplug-dev
426 - libvte-2.91-dev
Wainer dos Santos Moschetta58a1e5b2020-02-03 09:09:19 +0000427 # Tests dependencies
428 - genisoimage
Thomas Huth9c5941a2019-12-04 16:46:18 +0100429 env:
430 - TEST_CMD="make check check-tcg V=1"
431 - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS}"
432
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000433 - name: "[ppc64] GCC check-tcg"
434 arch: ppc64le
Thomas Huth9c5941a2019-12-04 16:46:18 +0100435 dist: xenial
436 addons:
437 apt_packages:
438 - libaio-dev
439 - libattr1-dev
440 - libbrlapi-dev
441 - libcap-ng-dev
442 - libgcrypt20-dev
443 - libgnutls28-dev
444 - libgtk-3-dev
445 - libiscsi-dev
446 - liblttng-ust-dev
447 - libncurses5-dev
448 - libnfs-dev
449 - libnss3-dev
450 - libpixman-1-dev
451 - libpng-dev
452 - librados-dev
453 - libsdl2-dev
454 - libseccomp-dev
455 - liburcu-dev
456 - libusb-1.0-0-dev
457 - libvdeplug-dev
458 - libvte-2.91-dev
Wainer dos Santos Moschetta58a1e5b2020-02-03 09:09:19 +0000459 # Tests dependencies
460 - genisoimage
Thomas Huth9c5941a2019-12-04 16:46:18 +0100461 env:
462 - TEST_CMD="make check check-tcg V=1"
Alex Bennéedaee97f2020-05-01 12:15:05 +0100463 - CONFIG="--disable-containers --target-list=ppc64-softmmu,ppc64le-linux-user"
Thomas Huth9c5941a2019-12-04 16:46:18 +0100464
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000465 - name: "[s390x] GCC check-tcg"
466 arch: s390x
Thomas Huth9c5941a2019-12-04 16:46:18 +0100467 dist: bionic
468 addons:
469 apt_packages:
470 - libaio-dev
471 - libattr1-dev
472 - libbrlapi-dev
473 - libcap-ng-dev
474 - libgcrypt20-dev
475 - libgnutls28-dev
476 - libgtk-3-dev
477 - libiscsi-dev
478 - liblttng-ust-dev
479 - libncurses5-dev
480 - libnfs-dev
481 - libnss3-dev
482 - libpixman-1-dev
483 - libpng-dev
484 - librados-dev
485 - libsdl2-dev
486 - libseccomp-dev
487 - liburcu-dev
488 - libusb-1.0-0-dev
489 - libvdeplug-dev
490 - libvte-2.91-dev
Wainer dos Santos Moschetta58a1e5b2020-02-03 09:09:19 +0000491 # Tests dependencies
492 - genisoimage
Thomas Huth9c5941a2019-12-04 16:46:18 +0100493 env:
494 - TEST_CMD="make check check-tcg V=1"
495 - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS},s390x-linux-user"
Thomas Huth31c8cc42020-02-25 12:46:56 +0000496 script:
497 - ( cd ${SRC_DIR} ; git submodule update --init roms/SLOF )
498 - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
499 - |
500 if [ "$BUILD_RC" -eq 0 ] ; then
501 mv pc-bios/s390-ccw/*.img pc-bios/ ;
502 ${TEST_CMD} ;
503 else
504 $(exit $BUILD_RC);
505 fi
Philippe Mathieu-Daudé61ac3dc2019-10-07 18:04:49 +0200506
Thomas Huthaae8b872020-05-13 18:51:26 +0100507 - name: "[s390x] Clang (disable-tcg)"
Philippe Mathieu-Daudé41e1f0e2020-03-23 16:15:14 +0000508 arch: s390x
509 dist: bionic
Thomas Huthaae8b872020-05-13 18:51:26 +0100510 compiler: clang
Philippe Mathieu-Daudé41e1f0e2020-03-23 16:15:14 +0000511 addons:
512 apt_packages:
513 - libaio-dev
514 - libattr1-dev
515 - libbrlapi-dev
516 - libcap-ng-dev
517 - libgcrypt20-dev
518 - libgnutls28-dev
519 - libgtk-3-dev
520 - libiscsi-dev
521 - liblttng-ust-dev
522 - libncurses5-dev
523 - libnfs-dev
524 - libnss3-dev
525 - libpixman-1-dev
526 - libpng-dev
527 - librados-dev
528 - libsdl2-dev
529 - libseccomp-dev
530 - liburcu-dev
531 - libusb-1.0-0-dev
532 - libvdeplug-dev
533 - libvte-2.91-dev
Philippe Mathieu-Daudé41e1f0e2020-03-23 16:15:14 +0000534 env:
535 - TEST_CMD="make check-unit"
Thomas Huthaae8b872020-05-13 18:51:26 +0100536 - CONFIG="--disable-containers --disable-tcg --enable-kvm
537 --disable-tools --host-cc=clang --cxx=clang++"
Philippe Mathieu-Daudé41e1f0e2020-03-23 16:15:14 +0000538
Philippe Mathieu-Daudé61ac3dc2019-10-07 18:04:49 +0200539 # Release builds
540 # The make-release script expect a QEMU version, so our tag must start with a 'v'.
541 # This is the case when release candidate tags are created.
Philippe Mathieu-Daudé097aebd2020-02-03 09:09:23 +0000542 - name: "Release tarball"
543 if: tag IS present AND tag =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/
Philippe Mathieu-Daudé61ac3dc2019-10-07 18:04:49 +0200544 env:
545 # We want to build from the release tarball
546 - BUILD_DIR="release/build/dir" SRC_DIR="../../.."
547 - BASE_CONFIG="--prefix=$PWD/dist"
548 - CONFIG="--target-list=x86_64-softmmu,aarch64-softmmu,armeb-linux-user,ppc-linux-user"
Alex Bennée0a7c0ae2020-02-03 09:09:26 +0000549 - TEST_CMD="make install -j${JOBS}"
Philippe Mathieu-Daudé61ac3dc2019-10-07 18:04:49 +0200550 - QEMU_VERSION="${TRAVIS_TAG:1}"
551 - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
Philippe Mathieu-Daudé61ac3dc2019-10-07 18:04:49 +0200552 script:
553 - make -C ${SRC_DIR} qemu-${QEMU_VERSION}.tar.bz2
554 - ls -l ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2
555 - tar -xf ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2 && cd qemu-${QEMU_VERSION}
Paolo Bonzinibc4486f2019-12-11 15:33:49 +0100556 - mkdir -p release-build && cd release-build
557 - ../configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; }
Philippe Mathieu-Daudé61ac3dc2019-10-07 18:04:49 +0200558 - make install