xref: /openbmc/qemu/.travis.yml (revision 31c8cc4f)
195310576SAlex Bennée# The current Travis default is a VM based 16.04 Xenial on GCE
295310576SAlex Bennée# Additional builds with specific requirements for a full VM need to
395310576SAlex Bennée# be added as additional matrix: entries later on
495310576SAlex Bennéedist: xenial
5fe863ab9SAlex Bennéelanguage: c
6fe863ab9SAlex Bennéecompiler:
7fe863ab9SAlex Bennée  - gcc
84bc629b2SPhilippe Mathieu-Daudécache:
95ef9c53cSPhilippe Mathieu-Daudé  # There is one cache per branch and compiler version.
105ef9c53cSPhilippe Mathieu-Daudé  # characteristics of each job are used to identify the cache:
115ef9c53cSPhilippe Mathieu-Daudé  # - OS name (currently, linux, osx, or windows)
125ef9c53cSPhilippe Mathieu-Daudé  # - OS distribution (for Linux, xenial, trusty, or precise)
135ef9c53cSPhilippe Mathieu-Daudé  # - macOS image name (e.g., xcode7.2)
145ef9c53cSPhilippe Mathieu-Daudé  # - Names and values of visible environment variables set in .travis.yml or Settings panel
15731cbb64SPhilippe Mathieu-Daudé  timeout: 1200
164bc629b2SPhilippe Mathieu-Daudé  ccache: true
176e189d78SPhilippe Mathieu-Daudé  pip: true
18c1073e44SPhilippe Mathieu-Daudé  directories:
19c1073e44SPhilippe Mathieu-Daudé  - $HOME/avocado/data/cache
20197be697SDaniel P. Berrangé
21197be697SDaniel P. Berrangé
22692d162cSAlex Bennéeaddons:
23692d162cSAlex Bennée  apt:
24692d162cSAlex Bennée    packages:
2532265288SAlex Bennée      # Build dependencies
26692d162cSAlex Bennée      - libaio-dev
27692d162cSAlex Bennée      - libattr1-dev
28692d162cSAlex Bennée      - libbrlapi-dev
29692d162cSAlex Bennée      - libcap-ng-dev
307524a39dSPhilippe Mathieu-Daudé      - libgcc-4.8-dev
313c7a8b41SThomas Huth      - libgnutls28-dev
32692d162cSAlex Bennée      - libgtk-3-dev
33692d162cSAlex Bennée      - libiscsi-dev
34692d162cSAlex Bennée      - liblttng-ust-dev
35692d162cSAlex Bennée      - libncurses5-dev
36d83414e1SMarc-André Lureau      - libnfs-dev
37692d162cSAlex Bennée      - libnss3-dev
38692d162cSAlex Bennée      - libpixman-1-dev
393c7a8b41SThomas Huth      - libpng-dev
40692d162cSAlex Bennée      - librados-dev
41241e7955SThomas Huth      - libsdl2-dev
42241e7955SThomas Huth      - libsdl2-image-dev
43692d162cSAlex Bennée      - libseccomp-dev
44692d162cSAlex Bennée      - libspice-protocol-dev
45692d162cSAlex Bennée      - libspice-server-dev
46b10d49d7SPino Toscano      - libssh-dev
47692d162cSAlex Bennée      - liburcu-dev
48692d162cSAlex Bennée      - libusb-1.0-0-dev
497c1dd4d1SThomas Huth      - libvdeplug-dev
5095310576SAlex Bennée      - libvte-2.91-dev
51692d162cSAlex Bennée      - sparse
52692d162cSAlex Bennée      - uuid-dev
530708e647SAlex Bennée      - gcovr
5458a1e5b6SWainer dos Santos Moschetta      # Tests dependencies
5558a1e5b6SWainer dos Santos Moschetta      - genisoimage
56692d162cSAlex Bennée
57197be697SDaniel P. Berrangé
58cb4c2536SPranith Kumar# The channel name "irc.oftc.net#qemu" is encrypted against qemu/qemu
59cb4c2536SPranith Kumar# to prevent IRC notifications from forks. This was created using:
60cb4c2536SPranith Kumar# $ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu"
6139d16d29SAlex Bennéenotifications:
6239d16d29SAlex Bennée  irc:
6339d16d29SAlex Bennée    channels:
64cb4c2536SPranith Kumar      - secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1KWKjZe9KDTZWppWRYVwAwQMzVeSOsbbU4tRoJ6Pp+3qhH1Z0eGYR9ZgKYAoTumDFgSAYRp4IscKS8jkoedOqM="
6539d16d29SAlex Bennée    on_success: change
6639d16d29SAlex Bennée    on_failure: always
67197be697SDaniel P. Berrangé
68197be697SDaniel P. Berrangé
69fe863ab9SAlex Bennéeenv:
70fe863ab9SAlex Bennée  global:
71bc4486fbSPaolo Bonzini    - SRC_DIR=".."
72bc4486fbSPaolo Bonzini    - BUILD_DIR="build"
73570f3c77SAlex Bennée    - BASE_CONFIG="--disable-docs --disable-tools"
744f46afd9SAlex Bennée    - TEST_BUILD_CMD=""
7505273a43SAlex Bennée    - TEST_CMD="make check V=1"
768c3daf97SAlex Bennée    # This is broadly a list of "mainline" softmmu targets which have support across the major distros
776e988880SAlex Bennée    - MAIN_SOFTMMU_TARGETS="aarch64-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
78bcfbf0d5SPhilippe Mathieu-Daudé    - CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime"
79bcfbf0d5SPhilippe Mathieu-Daudé    - CCACHE_MAXSIZE=1G
80bcfbf0d5SPhilippe Mathieu-Daudé
81197be697SDaniel P. Berrangé
82cb021cfeSAlex Bennéegit:
83cb021cfeSAlex Bennée  # we want to do this ourselves
84cb021cfeSAlex Bennée  submodules: false
85197be697SDaniel P. Berrangé
86b3165c87SAlex Bennée# Common first phase for all steps
87b3165c87SAlex Bennéebefore_install:
88312995c2SThomas Huth  - if command -v ccache ; then ccache --zero-stats ; fi
890a7c0ae0SAlex Bennée  - export JOBS=$(($(getconf _NPROCESSORS_ONLN) + 1))
900a7c0ae0SAlex Bennée  - echo "=== Using ${JOBS} simultaneous jobs ==="
91b3165c87SAlex Bennée
92b3165c87SAlex Bennée# Configure step - may be overridden
93b3165c87SAlex Bennéebefore_script:
94ebf2ff65SPhilippe Mathieu-Daudé  - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
95570f3c77SAlex Bennée  - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; }
96b3165c87SAlex Bennée
97b3165c87SAlex Bennée# Main build & test - rarely overridden - controlled by TEST_CMD
98eebf2940SAlex Bennéescript:
990a7c0ae0SAlex Bennée  - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
1004f46afd9SAlex Bennée  - |
1014f46afd9SAlex Bennée    if [ "$BUILD_RC" -eq 0 ] && [ -n "$TEST_BUILD_CMD" ]; then
1024f46afd9SAlex Bennée        ${TEST_BUILD_CMD} || BUILD_RC=$?
1034f46afd9SAlex Bennée    else
1044f46afd9SAlex Bennée        $(exit $BUILD_RC);
1054f46afd9SAlex Bennée    fi
106ec49faacSAlex Bennée  - |
107ec49faacSAlex Bennée    if [ "$BUILD_RC" -eq 0 ] ; then
108ec49faacSAlex Bennée        ${TEST_CMD} ;
109ec49faacSAlex Bennée    else
110ec49faacSAlex Bennée        $(exit $BUILD_RC);
111ec49faacSAlex Bennée    fi
112bcfbf0d5SPhilippe Mathieu-Daudéafter_script:
113312995c2SThomas Huth  - if command -v ccache ; then ccache --show-stats ; fi
114197be697SDaniel P. Berrangé
115197be697SDaniel P. Berrangé
116fe863ab9SAlex Bennéematrix:
117fe863ab9SAlex Bennée  include:
118097aebd8SPhilippe Mathieu-Daudé    - name: "GCC static (user)"
119097aebd8SPhilippe Mathieu-Daudé      env:
120c3c1874aSAlex Bennée        - CONFIG="--disable-system --static"
1217d183c54SPhilippe Mathieu-Daudé        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
1223e094234SDaniel P. Berrangé
1233e094234SDaniel P. Berrangé
1248c3daf97SAlex Bennée    # we split the system builds as it takes a while to build them all
125097aebd8SPhilippe Mathieu-Daudé    - name: "GCC (main-softmmu)"
126097aebd8SPhilippe Mathieu-Daudé      env:
1278c3daf97SAlex Bennée        - CONFIG="--disable-user --target-list=${MAIN_SOFTMMU_TARGETS}"
1287d183c54SPhilippe Mathieu-Daudé        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
1298c3daf97SAlex Bennée
1308c3daf97SAlex Bennée
131097aebd8SPhilippe Mathieu-Daudé    - name: "GCC (other-softmmu)"
132097aebd8SPhilippe Mathieu-Daudé      env:
1338c3daf97SAlex Bennée       - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}"
1347d183c54SPhilippe Mathieu-Daudé        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
1353e094234SDaniel P. Berrangé
1363e094234SDaniel P. Berrangé
137df2bb38eSAlex Bennée    # Just build tools and run minimal unit and softfloat checks
138097aebd8SPhilippe Mathieu-Daudé    - name: "GCC check-softfloat (user)"
139097aebd8SPhilippe Mathieu-Daudé      env:
140df2bb38eSAlex Bennée        - BASE_CONFIG="--enable-tools"
141df2bb38eSAlex Bennée        - CONFIG="--disable-user --disable-system"
1420a7c0ae0SAlex Bennée        - TEST_CMD="make check-unit check-softfloat -j${JOBS}"
1437d183c54SPhilippe Mathieu-Daudé        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
1447d183c54SPhilippe Mathieu-Daudé
145df2bb38eSAlex Bennée
146138382c6SAlex Bennée    # --enable-debug implies --enable-debug-tcg, also runs quite a bit slower
147097aebd8SPhilippe Mathieu-Daudé    - name: "GCC debug (main-softmmu)"
148097aebd8SPhilippe Mathieu-Daudé      env:
149138382c6SAlex Bennée        - CONFIG="--enable-debug --target-list=${MAIN_SOFTMMU_TARGETS}"
1508fb90e3dSPhilippe Mathieu-Daudé        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug"
1514e6e7df6SAlex Bennée
1524e6e7df6SAlex Bennée
153138382c6SAlex Bennée    # TCG debug can be run just on its own and is mostly agnostic to user/softmmu distinctions
154097aebd8SPhilippe Mathieu-Daudé    - name: "GCC debug (user)"
155097aebd8SPhilippe Mathieu-Daudé      env:
1564e6e7df6SAlex Bennée        - CONFIG="--enable-debug-tcg --disable-system"
15719633df8SAlex Bennée        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg"
1583e094234SDaniel P. Berrangé
1593e094234SDaniel P. Berrangé
160097aebd8SPhilippe Mathieu-Daudé    - name: "GCC some libs disabled (main-softmmu)"
161097aebd8SPhilippe Mathieu-Daudé      env:
162aec2927dSAlex Bennée        - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-libusb --disable-replication --target-list=${MAIN_SOFTMMU_TARGETS}"
1633e094234SDaniel P. Berrangé
1643e094234SDaniel P. Berrangé
1652f6c2526SAlex Bennée    # Module builds are mostly of interest to major distros
166097aebd8SPhilippe Mathieu-Daudé    - name: "GCC modules (main-softmmu)"
167097aebd8SPhilippe Mathieu-Daudé      env:
1688c3daf97SAlex Bennée        - CONFIG="--enable-modules --target-list=${MAIN_SOFTMMU_TARGETS}"
1697d183c54SPhilippe Mathieu-Daudé        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
1703e094234SDaniel P. Berrangé
1713e094234SDaniel P. Berrangé
172f3908ff7SAlex Bennée    # Alternate coroutines implementations are only really of interest to KVM users
173f3908ff7SAlex Bennée    # However we can't test against KVM on Travis so we can only run unit tests
174097aebd8SPhilippe Mathieu-Daudé    - name: "check-unit coroutine=ucontext"
175097aebd8SPhilippe Mathieu-Daudé      env:
176f3908ff7SAlex Bennée        - CONFIG="--with-coroutine=ucontext --disable-tcg"
1770a7c0ae0SAlex Bennée        - TEST_CMD="make check-unit -j${JOBS} V=1"
1783e094234SDaniel P. Berrangé
1793e094234SDaniel P. Berrangé
180097aebd8SPhilippe Mathieu-Daudé    - name: "check-unit coroutine=sigaltstack"
181097aebd8SPhilippe Mathieu-Daudé      env:
182f3908ff7SAlex Bennée        - CONFIG="--with-coroutine=sigaltstack --disable-tcg"
1830a7c0ae0SAlex Bennée        - TEST_CMD="make check-unit -j${JOBS} V=1"
1843e094234SDaniel P. Berrangé
1853e094234SDaniel P. Berrangé
186956d4506SAlex Bennée    # Check we can build docs and tools (out of tree)
187204b30e2SAlex Bennée    - name: "tools and docs (bionic)"
188204b30e2SAlex Bennée      dist: bionic
189097aebd8SPhilippe Mathieu-Daudé      env:
190956d4506SAlex Bennée        - BUILD_DIR="out-of-tree/build/dir" SRC_DIR="../../.."
191570f3c77SAlex Bennée        - BASE_CONFIG="--enable-tools --enable-docs"
192570f3c77SAlex Bennée        - CONFIG="--target-list=x86_64-softmmu,aarch64-linux-user"
1937d183c54SPhilippe Mathieu-Daudé        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
194570f3c77SAlex Bennée      addons:
195570f3c77SAlex Bennée        apt:
196570f3c77SAlex Bennée          packages:
19768e5b85eSAlex Bennée            - python3-sphinx
198570f3c77SAlex Bennée            - texinfo
199570f3c77SAlex Bennée            - perl
200570f3c77SAlex Bennée
201197be697SDaniel P. Berrangé
202ae6d692dSAlex Bennée    # Test with Clang for compile portability (Travis uses clang-5.0)
203097aebd8SPhilippe Mathieu-Daudé    - name: "Clang (user)"
204097aebd8SPhilippe Mathieu-Daudé      env:
205c21d7efcSDaniel P. Berrangé        - CONFIG="--disable-system"
206e2bef011SPhilippe Mathieu-Daudé        - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default"
207ae6d692dSAlex Bennée      compiler: clang
208197be697SDaniel P. Berrangé
209197be697SDaniel P. Berrangé
210097aebd8SPhilippe Mathieu-Daudé    - name: "Clang (main-softmmu)"
211097aebd8SPhilippe Mathieu-Daudé      env:
2127831147eSAlex Bennée        - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS} "
213b08c2ae3SAlex Bennée        - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-sanitize"
2147831147eSAlex Bennée      compiler: clang
2157831147eSAlex Bennée      before_script:
216bc4486fbSPaolo Bonzini        - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
217bc4486fbSPaolo Bonzini        - ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-fsanitize=undefined -Werror" || { cat config.log && exit 1; }
2187831147eSAlex Bennée
2197831147eSAlex Bennée
220097aebd8SPhilippe Mathieu-Daudé    - name: "Clang (other-softmmu)"
221097aebd8SPhilippe Mathieu-Daudé      env:
2228c3daf97SAlex Bennée        - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}"
223e2bef011SPhilippe Mathieu-Daudé        - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default"
224d9a6b013SDaniel P. Berrange      compiler: clang
225197be697SDaniel P. Berrangé
226197be697SDaniel P. Berrangé
2276c933291SAlex Bennée    # gprof/gcov are GCC features
228097aebd8SPhilippe Mathieu-Daudé    - name: "GCC gprof/gcov"
229097aebd8SPhilippe Mathieu-Daudé      env:
2308c3daf97SAlex Bennée        - CONFIG="--enable-gprof --enable-gcov --disable-pie --target-list=${MAIN_SOFTMMU_TARGETS}"
2310708e647SAlex Bennée      after_success:
2320708e647SAlex Bennée        - ${SRC_DIR}/scripts/travis/coverage-summary.sh
233197be697SDaniel P. Berrangé
234197be697SDaniel P. Berrangé
2356c933291SAlex Bennée    # We manually include builds which we disable "make check" for
236097aebd8SPhilippe Mathieu-Daudé    - name: "GCC without-default-devices (softmmu)"
237097aebd8SPhilippe Mathieu-Daudé      env:
238386dc514SAlex Bennée        - CONFIG="--without-default-devices --disable-user"
2397d183c54SPhilippe Mathieu-Daudé        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
24020885b5bSPaolo Bonzini        - TEST_CMD=""
24120885b5bSPaolo Bonzini
24220885b5bSPaolo Bonzini
2433edaa995SThomas Huth    # Check the TCG interpreter (TCI)
244097aebd8SPhilippe Mathieu-Daudé    - name: "GCC TCI"
245097aebd8SPhilippe Mathieu-Daudé      env:
2463edaa995SThomas Huth        - CONFIG="--enable-debug-tcg --enable-tcg-interpreter --disable-kvm --disable-containers
2473edaa995SThomas Huth            --target-list=alpha-softmmu,arm-softmmu,hppa-softmmu,m68k-softmmu,microblaze-softmmu,moxie-softmmu,ppc-softmmu,s390x-softmmu,x86_64-softmmu"
2483edaa995SThomas Huth        - TEST_CMD="make check-qtest check-tcg V=1"
249197be697SDaniel P. Berrangé
250197be697SDaniel P. Berrangé
251f8309de9SAlex Bennée    # We don't need to exercise every backend with every front-end
252097aebd8SPhilippe Mathieu-Daudé    - name: "GCC trace log,simple,syslog (user)"
253097aebd8SPhilippe Mathieu-Daudé      env:
254c21d7efcSDaniel P. Berrangé        - CONFIG="--enable-trace-backends=log,simple,syslog --disable-system"
255c21d7efcSDaniel P. Berrangé        - TEST_CMD=""
256197be697SDaniel P. Berrangé
257197be697SDaniel P. Berrangé
258097aebd8SPhilippe Mathieu-Daudé    - name: "GCC trace ftrace (x86_64-softmmu)"
259097aebd8SPhilippe Mathieu-Daudé      env:
260c21d7efcSDaniel P. Berrangé        - CONFIG="--enable-trace-backends=ftrace --target-list=x86_64-softmmu"
261c21d7efcSDaniel P. Berrangé        - TEST_CMD=""
262197be697SDaniel P. Berrangé
263197be697SDaniel P. Berrangé
264097aebd8SPhilippe Mathieu-Daudé    - name: "GCC trace ust (x86_64-softmmu)"
265097aebd8SPhilippe Mathieu-Daudé      env:
266c21d7efcSDaniel P. Berrangé        - CONFIG="--enable-trace-backends=ust --target-list=x86_64-softmmu"
267c21d7efcSDaniel P. Berrangé        - TEST_CMD=""
268197be697SDaniel P. Berrangé
269197be697SDaniel P. Berrangé
270fb224688SAlex Bennée    # MacOSX builds - cirrus.yml also tests some MacOS builds including latest Xcode
271197be697SDaniel P. Berrangé
272097aebd8SPhilippe Mathieu-Daudé    - name: "OSX Xcode 10.3"
273097aebd8SPhilippe Mathieu-Daudé      env:
274cd7507cbSPhilippe Mathieu-Daudé        - CONFIG="--target-list=i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu,x86_64-softmmu"
275cd7507cbSPhilippe Mathieu-Daudé      os: osx
2760cb3e7baSAlex Bennée      osx_image: xcode10.3
277cd7507cbSPhilippe Mathieu-Daudé      compiler: clang
278289c8e59SAlex Bennée      addons:
279289c8e59SAlex Bennée        homebrew:
280289c8e59SAlex Bennée          packages:
281289c8e59SAlex Bennée            - ccache
282289c8e59SAlex Bennée            - glib
283289c8e59SAlex Bennée            - pixman
284289c8e59SAlex Bennée            - gnu-sed
285289c8e59SAlex Bennée            - python
286289c8e59SAlex Bennée          update: true
2876e3bd8a0SAlex Bennée      before_script:
288289c8e59SAlex Bennée        - brew link --overwrite python
2896e3bd8a0SAlex Bennée        - export PATH="/usr/local/opt/ccache/libexec:$PATH"
2906e3bd8a0SAlex Bennée        - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
2916e3bd8a0SAlex Bennée        - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; }
292cd7507cbSPhilippe Mathieu-Daudé
293cd7507cbSPhilippe Mathieu-Daudé
294ae6d692dSAlex Bennée    # Python builds
295097aebd8SPhilippe Mathieu-Daudé    - name: "GCC Python 3.5 (x86_64-softmmu)"
296097aebd8SPhilippe Mathieu-Daudé      env:
297c21d7efcSDaniel P. Berrangé        - CONFIG="--target-list=x86_64-softmmu"
2987d183c54SPhilippe Mathieu-Daudé        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
29953fefde4SCleber Rosa      language: python
3008e73a3c5SDaniel P. Berrange      python:
30149233804SEduardo Habkost        - "3.5"
302197be697SDaniel P. Berrangé
303197be697SDaniel P. Berrangé
304097aebd8SPhilippe Mathieu-Daudé    - name: "GCC Python 3.6 (x86_64-softmmu)"
305097aebd8SPhilippe Mathieu-Daudé      env:
306c21d7efcSDaniel P. Berrangé        - CONFIG="--target-list=x86_64-softmmu"
3077d183c54SPhilippe Mathieu-Daudé        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
30853fefde4SCleber Rosa      language: python
3098e73a3c5SDaniel P. Berrange      python:
3108e73a3c5SDaniel P. Berrange        - "3.6"
311197be697SDaniel P. Berrangé
312197be697SDaniel P. Berrangé
313aa983ff6SCleber Rosa    # Acceptance (Functional) tests
314097aebd8SPhilippe Mathieu-Daudé    - name: "GCC check-acceptance"
315097aebd8SPhilippe Mathieu-Daudé      env:
316b0065e1fSThomas Huth        - CONFIG="--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"
3170b98c20aSEduardo Habkost        - TEST_CMD="make check-acceptance"
31867892c95SWainer dos Santos Moschetta      after_script:
31967892c95SWainer dos Santos Moschetta        - 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
320aa983ff6SCleber Rosa      addons:
321aa983ff6SCleber Rosa        apt:
322aa983ff6SCleber Rosa          packages:
32325311649SPhilippe Mathieu-Daudé            - python3-pil
324aa983ff6SCleber Rosa            - python3-pip
32595310576SAlex Bennée            - python3.5-venv
3268a837088SLiam Merwick            - rpm2cpio
32725311649SPhilippe Mathieu-Daudé            - tesseract-ocr
32825311649SPhilippe Mathieu-Daudé            - tesseract-ocr-eng
32925311649SPhilippe Mathieu-Daudé
33025311649SPhilippe Mathieu-Daudé
33132265288SAlex Bennée    # Using newer GCC with sanitizers
332097aebd8SPhilippe Mathieu-Daudé    - name: "GCC9 with sanitizers (softmmu)"
333097aebd8SPhilippe Mathieu-Daudé      addons:
33432265288SAlex Bennée        apt:
335ac07ffc6SAlex Bennée          update: true
33632265288SAlex Bennée          sources:
33732265288SAlex Bennée            # PPAs for newer toolchains
33832265288SAlex Bennée            - ubuntu-toolchain-r-test
33932265288SAlex Bennée          packages:
34032265288SAlex Bennée            # Extra toolchains
3413998c25eSAlex Bennée            - gcc-9
3423998c25eSAlex Bennée            - g++-9
34332265288SAlex Bennée            # Build dependencies
34432265288SAlex Bennée            - libaio-dev
34532265288SAlex Bennée            - libattr1-dev
34632265288SAlex Bennée            - libbrlapi-dev
34732265288SAlex Bennée            - libcap-ng-dev
34832265288SAlex Bennée            - libgnutls-dev
34932265288SAlex Bennée            - libgtk-3-dev
35032265288SAlex Bennée            - libiscsi-dev
35132265288SAlex Bennée            - liblttng-ust-dev
35232265288SAlex Bennée            - libnfs-dev
35332265288SAlex Bennée            - libncurses5-dev
35432265288SAlex Bennée            - libnss3-dev
35532265288SAlex Bennée            - libpixman-1-dev
35632265288SAlex Bennée            - libpng12-dev
35732265288SAlex Bennée            - librados-dev
358241e7955SThomas Huth            - libsdl2-dev
359241e7955SThomas Huth            - libsdl2-image-dev
36032265288SAlex Bennée            - libseccomp-dev
36132265288SAlex Bennée            - libspice-protocol-dev
36232265288SAlex Bennée            - libspice-server-dev
363b10d49d7SPino Toscano            - libssh-dev
36432265288SAlex Bennée            - liburcu-dev
36532265288SAlex Bennée            - libusb-1.0-0-dev
36695310576SAlex Bennée            - libvte-2.91-dev
36732265288SAlex Bennée            - sparse
36832265288SAlex Bennée            - uuid-dev
36932265288SAlex Bennée      language: generic
37032265288SAlex Bennée      compiler: none
37132265288SAlex Bennée      env:
3723998c25eSAlex Bennée        - COMPILER_NAME=gcc CXX=g++-9 CC=gcc-9
3733998c25eSAlex Bennée        - CONFIG="--cc=gcc-9 --cxx=g++-9 --disable-pie --disable-linux-user"
37432265288SAlex Bennée        - TEST_CMD=""
37532265288SAlex Bennée      before_script:
376bc4486fbSPaolo Bonzini        - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
377db5adeaaSPaolo Bonzini        - ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-g3 -O0 -Wno-error=stringop-truncation -fsanitize=thread" --extra-ldflags="-fuse-ld=gold" || { cat config.log && exit 1; }
378197be697SDaniel P. Berrangé
379197be697SDaniel P. Berrangé
380dab3a7c0SAlex Bennée    # Run check-tcg against linux-user
381097aebd8SPhilippe Mathieu-Daudé    - name: "GCC check-tcg (user)"
382097aebd8SPhilippe Mathieu-Daudé      env:
3832efabbe1SAlex Bennée        - CONFIG="--disable-system --enable-debug-tcg"
38473217f3eSAlex Bennée        - TEST_BUILD_CMD="make build-tcg"
3854f46afd9SAlex Bennée        - TEST_CMD="make check-tcg"
38619633df8SAlex Bennée        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg"
3877d183c54SPhilippe Mathieu-Daudé
388dab3a7c0SAlex Bennée
3894fbddb5dSAlex Bennée    # Run check-tcg against linux-user (with plugins)
3904fbddb5dSAlex Bennée    # we skip sparc64-linux-user until it has been fixed somewhat
3917986f486SAlex Bennée    # we skip cris-linux-user as it doesn't use the common run loop
392097aebd8SPhilippe Mathieu-Daudé    - name: "GCC plugins check-tcg (user)"
393097aebd8SPhilippe Mathieu-Daudé      env:
3947986f486SAlex Bennée        - CONFIG="--disable-system --enable-plugins --enable-debug-tcg --target-list-exclude=sparc64-linux-user,cris-linux-user"
39573217f3eSAlex Bennée        - TEST_BUILD_CMD="make build-tcg"
3964f46afd9SAlex Bennée        - TEST_CMD="make check-tcg"
39719633df8SAlex Bennée        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg"
398e2576f9bSDaniel P. Berrangé
399dab3a7c0SAlex Bennée
400dab3a7c0SAlex Bennée    # Run check-tcg against softmmu targets
401097aebd8SPhilippe Mathieu-Daudé    - name: "GCC check-tcg (some-softmmu)"
402097aebd8SPhilippe Mathieu-Daudé      env:
4032efabbe1SAlex Bennée        - CONFIG="--enable-debug-tcg --target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu"
4044f46afd9SAlex Bennée        - TEST_BUILD_CMD="make -j${JOBS} build-tcg"
4054f46afd9SAlex Bennée        - TEST_CMD="make check-tcg"
40619633df8SAlex Bennée        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg"
40761ac3dccSPhilippe Mathieu-Daudé
40861ac3dccSPhilippe Mathieu-Daudé
4094fbddb5dSAlex Bennée    # Run check-tcg against softmmu targets (with plugins)
410097aebd8SPhilippe Mathieu-Daudé    - name: "GCC plugins check-tcg (some-softmmu)"
411097aebd8SPhilippe Mathieu-Daudé      env:
41219633df8SAlex Bennée        - CONFIG="--enable-plugins --enable-debug-tcg --target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu"
4134f46afd9SAlex Bennée        - TEST_BUILD_CMD="make -j${JOBS} build-tcg"
4144f46afd9SAlex Bennée        - TEST_CMD="make check-tcg"
41519633df8SAlex Bennée        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg"
41661ac3dccSPhilippe Mathieu-Daudé
417097aebd8SPhilippe Mathieu-Daudé    - name: "[aarch64] GCC check-tcg"
418097aebd8SPhilippe Mathieu-Daudé      arch: arm64
4199c5941a9SThomas Huth      dist: xenial
4209c5941a9SThomas Huth      addons:
4219c5941a9SThomas Huth        apt_packages:
4229c5941a9SThomas Huth          - libaio-dev
4239c5941a9SThomas Huth          - libattr1-dev
4249c5941a9SThomas Huth          - libbrlapi-dev
4259c5941a9SThomas Huth          - libcap-ng-dev
4269c5941a9SThomas Huth          - libgcrypt20-dev
4279c5941a9SThomas Huth          - libgnutls28-dev
4289c5941a9SThomas Huth          - libgtk-3-dev
4299c5941a9SThomas Huth          - libiscsi-dev
4309c5941a9SThomas Huth          - liblttng-ust-dev
4319c5941a9SThomas Huth          - libncurses5-dev
4329c5941a9SThomas Huth          - libnfs-dev
4339c5941a9SThomas Huth          - libnss3-dev
4349c5941a9SThomas Huth          - libpixman-1-dev
4359c5941a9SThomas Huth          - libpng-dev
4369c5941a9SThomas Huth          - librados-dev
4379c5941a9SThomas Huth          - libsdl2-dev
4389c5941a9SThomas Huth          - libseccomp-dev
4399c5941a9SThomas Huth          - liburcu-dev
4409c5941a9SThomas Huth          - libusb-1.0-0-dev
4419c5941a9SThomas Huth          - libvdeplug-dev
4429c5941a9SThomas Huth          - libvte-2.91-dev
44358a1e5b6SWainer dos Santos Moschetta          # Tests dependencies
44458a1e5b6SWainer dos Santos Moschetta          - genisoimage
4459c5941a9SThomas Huth      env:
4469c5941a9SThomas Huth        - TEST_CMD="make check check-tcg V=1"
4479c5941a9SThomas Huth        - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS}"
4489c5941a9SThomas Huth
449097aebd8SPhilippe Mathieu-Daudé    - name: "[ppc64] GCC check-tcg"
450097aebd8SPhilippe Mathieu-Daudé      arch: ppc64le
4519c5941a9SThomas Huth      dist: xenial
4529c5941a9SThomas Huth      addons:
4539c5941a9SThomas Huth        apt_packages:
4549c5941a9SThomas Huth          - libaio-dev
4559c5941a9SThomas Huth          - libattr1-dev
4569c5941a9SThomas Huth          - libbrlapi-dev
4579c5941a9SThomas Huth          - libcap-ng-dev
4589c5941a9SThomas Huth          - libgcrypt20-dev
4599c5941a9SThomas Huth          - libgnutls28-dev
4609c5941a9SThomas Huth          - libgtk-3-dev
4619c5941a9SThomas Huth          - libiscsi-dev
4629c5941a9SThomas Huth          - liblttng-ust-dev
4639c5941a9SThomas Huth          - libncurses5-dev
4649c5941a9SThomas Huth          - libnfs-dev
4659c5941a9SThomas Huth          - libnss3-dev
4669c5941a9SThomas Huth          - libpixman-1-dev
4679c5941a9SThomas Huth          - libpng-dev
4689c5941a9SThomas Huth          - librados-dev
4699c5941a9SThomas Huth          - libsdl2-dev
4709c5941a9SThomas Huth          - libseccomp-dev
4719c5941a9SThomas Huth          - liburcu-dev
4729c5941a9SThomas Huth          - libusb-1.0-0-dev
4739c5941a9SThomas Huth          - libvdeplug-dev
4749c5941a9SThomas Huth          - libvte-2.91-dev
47558a1e5b6SWainer dos Santos Moschetta          # Tests dependencies
47658a1e5b6SWainer dos Santos Moschetta          - genisoimage
4779c5941a9SThomas Huth      env:
4789c5941a9SThomas Huth        - TEST_CMD="make check check-tcg V=1"
4799c5941a9SThomas Huth        - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS},ppc64le-linux-user"
4809c5941a9SThomas Huth
481097aebd8SPhilippe Mathieu-Daudé    - name: "[s390x] GCC check-tcg"
482097aebd8SPhilippe Mathieu-Daudé      arch: s390x
4839c5941a9SThomas Huth      dist: bionic
4849c5941a9SThomas Huth      addons:
4859c5941a9SThomas Huth        apt_packages:
4869c5941a9SThomas Huth          - libaio-dev
4879c5941a9SThomas Huth          - libattr1-dev
4889c5941a9SThomas Huth          - libbrlapi-dev
4899c5941a9SThomas Huth          - libcap-ng-dev
4909c5941a9SThomas Huth          - libgcrypt20-dev
4919c5941a9SThomas Huth          - libgnutls28-dev
4929c5941a9SThomas Huth          - libgtk-3-dev
4939c5941a9SThomas Huth          - libiscsi-dev
4949c5941a9SThomas Huth          - liblttng-ust-dev
4959c5941a9SThomas Huth          - libncurses5-dev
4969c5941a9SThomas Huth          - libnfs-dev
4979c5941a9SThomas Huth          - libnss3-dev
4989c5941a9SThomas Huth          - libpixman-1-dev
4999c5941a9SThomas Huth          - libpng-dev
5009c5941a9SThomas Huth          - librados-dev
5019c5941a9SThomas Huth          - libsdl2-dev
5029c5941a9SThomas Huth          - libseccomp-dev
5039c5941a9SThomas Huth          - liburcu-dev
5049c5941a9SThomas Huth          - libusb-1.0-0-dev
5059c5941a9SThomas Huth          - libvdeplug-dev
5069c5941a9SThomas Huth          - libvte-2.91-dev
50758a1e5b6SWainer dos Santos Moschetta          # Tests dependencies
50858a1e5b6SWainer dos Santos Moschetta          - genisoimage
5099c5941a9SThomas Huth      env:
5109c5941a9SThomas Huth        - TEST_CMD="make check check-tcg V=1"
5119c5941a9SThomas Huth        - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS},s390x-linux-user"
512*31c8cc4fSThomas Huth      script:
513*31c8cc4fSThomas Huth        - ( cd ${SRC_DIR} ; git submodule update --init roms/SLOF )
514*31c8cc4fSThomas Huth        - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
515*31c8cc4fSThomas Huth        - |
516*31c8cc4fSThomas Huth          if [ "$BUILD_RC" -eq 0 ] ; then
517*31c8cc4fSThomas Huth              mv pc-bios/s390-ccw/*.img pc-bios/ ;
518*31c8cc4fSThomas Huth              ${TEST_CMD} ;
519*31c8cc4fSThomas Huth          else
520*31c8cc4fSThomas Huth              $(exit $BUILD_RC);
521*31c8cc4fSThomas Huth          fi
52261ac3dccSPhilippe Mathieu-Daudé
52361ac3dccSPhilippe Mathieu-Daudé    # Release builds
52461ac3dccSPhilippe Mathieu-Daudé    # The make-release script expect a QEMU version, so our tag must start with a 'v'.
52561ac3dccSPhilippe Mathieu-Daudé    # This is the case when release candidate tags are created.
526097aebd8SPhilippe Mathieu-Daudé    - name: "Release tarball"
527097aebd8SPhilippe Mathieu-Daudé      if: tag IS present AND tag =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/
52861ac3dccSPhilippe Mathieu-Daudé      env:
52961ac3dccSPhilippe Mathieu-Daudé        # We want to build from the release tarball
53061ac3dccSPhilippe Mathieu-Daudé        - BUILD_DIR="release/build/dir" SRC_DIR="../../.."
53161ac3dccSPhilippe Mathieu-Daudé        - BASE_CONFIG="--prefix=$PWD/dist"
53261ac3dccSPhilippe Mathieu-Daudé        - CONFIG="--target-list=x86_64-softmmu,aarch64-softmmu,armeb-linux-user,ppc-linux-user"
5330a7c0ae0SAlex Bennée        - TEST_CMD="make install -j${JOBS}"
53461ac3dccSPhilippe Mathieu-Daudé        - QEMU_VERSION="${TRAVIS_TAG:1}"
53561ac3dccSPhilippe Mathieu-Daudé        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
53661ac3dccSPhilippe Mathieu-Daudé      script:
53761ac3dccSPhilippe Mathieu-Daudé        - make -C ${SRC_DIR} qemu-${QEMU_VERSION}.tar.bz2
53861ac3dccSPhilippe Mathieu-Daudé        - ls -l ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2
53961ac3dccSPhilippe Mathieu-Daudé        - tar -xf ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2 && cd qemu-${QEMU_VERSION}
540bc4486fbSPaolo Bonzini        - mkdir -p release-build && cd release-build
541bc4486fbSPaolo Bonzini        - ../configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; }
54261ac3dccSPhilippe Mathieu-Daudé        - make install
543