Alex Bennée | 9531057 | 2019-01-09 10:42:00 +0000 | [diff] [blame] | 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 |
Wainer dos Santos Moschetta | 321e6ea | 2020-02-25 12:46:57 +0000 | [diff] [blame] | 4 | os: linux |
Alex Bennée | 9531057 | 2019-01-09 10:42:00 +0000 | [diff] [blame] | 5 | dist: xenial |
Alex Bennée | fe863ab | 2013-11-06 10:43:37 +0000 | [diff] [blame] | 6 | language: c |
Alex Bennée | fe863ab | 2013-11-06 10:43:37 +0000 | [diff] [blame] | 7 | compiler: |
| 8 | - gcc |
Philippe Mathieu-Daudé | 4bc629b | 2019-09-03 15:26:40 +0200 | [diff] [blame] | 9 | cache: |
Philippe Mathieu-Daudé | 5ef9c53 | 2019-09-03 15:26:46 +0200 | [diff] [blame] | 10 | # There is one cache per branch and compiler version. |
| 11 | # characteristics of each job are used to identify the cache: |
Alex Bennée | 22a2319 | 2020-05-01 12:15:03 +0100 | [diff] [blame] | 12 | # - OS name (currently only linux) |
Philippe Mathieu-Daudé | 5ef9c53 | 2019-09-03 15:26:46 +0200 | [diff] [blame] | 13 | # - OS distribution (for Linux, xenial, trusty, or precise) |
Philippe Mathieu-Daudé | 5ef9c53 | 2019-09-03 15:26:46 +0200 | [diff] [blame] | 14 | # - Names and values of visible environment variables set in .travis.yml or Settings panel |
Philippe Mathieu-Daudé | 731cbb6 | 2019-09-03 15:26:41 +0200 | [diff] [blame] | 15 | timeout: 1200 |
Philippe Mathieu-Daudé | 4bc629b | 2019-09-03 15:26:40 +0200 | [diff] [blame] | 16 | ccache: true |
Philippe Mathieu-Daudé | 6e189d7 | 2019-09-03 15:26:42 +0200 | [diff] [blame] | 17 | pip: true |
Philippe Mathieu-Daudé | c1073e4 | 2019-09-03 15:26:43 +0200 | [diff] [blame] | 18 | directories: |
| 19 | - $HOME/avocado/data/cache |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 20 | |
| 21 | |
Alex Bennée | 692d162 | 2016-01-14 19:21:16 +0000 | [diff] [blame] | 22 | addons: |
| 23 | apt: |
| 24 | packages: |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 25 | # Build dependencies |
Alex Bennée | 692d162 | 2016-01-14 19:21:16 +0000 | [diff] [blame] | 26 | - libaio-dev |
| 27 | - libattr1-dev |
| 28 | - libbrlapi-dev |
| 29 | - libcap-ng-dev |
Philippe Mathieu-Daudé | 7524a39 | 2018-02-12 15:46:50 -0300 | [diff] [blame] | 30 | - libgcc-4.8-dev |
Thomas Huth | 3c7a8b4 | 2019-10-09 19:06:59 +0200 | [diff] [blame] | 31 | - libgnutls28-dev |
Alex Bennée | 692d162 | 2016-01-14 19:21:16 +0000 | [diff] [blame] | 32 | - libgtk-3-dev |
| 33 | - libiscsi-dev |
| 34 | - liblttng-ust-dev |
| 35 | - libncurses5-dev |
Marc-André Lureau | d83414e | 2018-01-16 16:11:52 +0100 | [diff] [blame] | 36 | - libnfs-dev |
Alex Bennée | 692d162 | 2016-01-14 19:21:16 +0000 | [diff] [blame] | 37 | - libnss3-dev |
| 38 | - libpixman-1-dev |
Thomas Huth | 3c7a8b4 | 2019-10-09 19:06:59 +0200 | [diff] [blame] | 39 | - libpng-dev |
Alex Bennée | 692d162 | 2016-01-14 19:21:16 +0000 | [diff] [blame] | 40 | - librados-dev |
Thomas Huth | 241e795 | 2019-10-09 19:06:58 +0200 | [diff] [blame] | 41 | - libsdl2-dev |
| 42 | - libsdl2-image-dev |
Alex Bennée | 692d162 | 2016-01-14 19:21:16 +0000 | [diff] [blame] | 43 | - libseccomp-dev |
| 44 | - libspice-protocol-dev |
| 45 | - libspice-server-dev |
Pino Toscano | b10d49d | 2019-06-20 22:08:40 +0200 | [diff] [blame] | 46 | - libssh-dev |
Alex Bennée | 692d162 | 2016-01-14 19:21:16 +0000 | [diff] [blame] | 47 | - liburcu-dev |
| 48 | - libusb-1.0-0-dev |
Thomas Huth | 7c1dd4d | 2019-10-09 19:06:57 +0200 | [diff] [blame] | 49 | - libvdeplug-dev |
Alex Bennée | 9531057 | 2019-01-09 10:42:00 +0000 | [diff] [blame] | 50 | - libvte-2.91-dev |
Juan Quintela | 3a67848 | 2019-12-17 21:15:24 +0100 | [diff] [blame] | 51 | - libzstd-dev |
Alex Bennée | 692d162 | 2016-01-14 19:21:16 +0000 | [diff] [blame] | 52 | - sparse |
| 53 | - uuid-dev |
Alex Bennée | 0708e64 | 2018-06-20 12:00:07 +0100 | [diff] [blame] | 54 | - gcovr |
Wainer dos Santos Moschetta | 58a1e5b | 2020-02-03 09:09:19 +0000 | [diff] [blame] | 55 | # Tests dependencies |
| 56 | - genisoimage |
Alex Bennée | 692d162 | 2016-01-14 19:21:16 +0000 | [diff] [blame] | 57 | |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 58 | |
Pranith Kumar | cb4c253 | 2016-06-27 14:13:22 -0400 | [diff] [blame] | 59 | # 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ée | 39d16d2 | 2014-03-12 14:13:53 +0000 | [diff] [blame] | 62 | notifications: |
| 63 | irc: |
| 64 | channels: |
Pranith Kumar | cb4c253 | 2016-06-27 14:13:22 -0400 | [diff] [blame] | 65 | - secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1KWKjZe9KDTZWppWRYVwAwQMzVeSOsbbU4tRoJ6Pp+3qhH1Z0eGYR9ZgKYAoTumDFgSAYRp4IscKS8jkoedOqM=" |
Alex Bennée | 39d16d2 | 2014-03-12 14:13:53 +0000 | [diff] [blame] | 66 | on_success: change |
| 67 | on_failure: always |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 68 | |
| 69 | |
Alex Bennée | fe863ab | 2013-11-06 10:43:37 +0000 | [diff] [blame] | 70 | env: |
| 71 | global: |
Paolo Bonzini | bc4486f | 2019-12-11 15:33:49 +0100 | [diff] [blame] | 72 | - SRC_DIR=".." |
| 73 | - BUILD_DIR="build" |
Alex Bennée | 570f3c7 | 2019-02-01 17:12:29 +0000 | [diff] [blame] | 74 | - BASE_CONFIG="--disable-docs --disable-tools" |
Alex Bennée | 4f46afd | 2020-02-03 09:09:29 +0000 | [diff] [blame] | 75 | - TEST_BUILD_CMD="" |
Alex Bennée | 05273a4 | 2019-11-07 10:47:03 +0000 | [diff] [blame] | 76 | - TEST_CMD="make check V=1" |
Alex Bennée | 8c3daf9 | 2019-03-19 12:09:49 +0000 | [diff] [blame] | 77 | # This is broadly a list of "mainline" softmmu targets which have support across the major distros |
Alex Bennée | 6e98888 | 2019-11-12 18:31:19 +0000 | [diff] [blame] | 78 | - MAIN_SOFTMMU_TARGETS="aarch64-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu" |
Philippe Mathieu-Daudé | bcfbf0d | 2019-09-03 15:26:44 +0200 | [diff] [blame] | 79 | - CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime" |
| 80 | - CCACHE_MAXSIZE=1G |
Philippe Mathieu-Daudé | 2dbd39c | 2020-03-16 17:21:32 +0000 | [diff] [blame] | 81 | - G_MESSAGES_DEBUG=error |
Philippe Mathieu-Daudé | bcfbf0d | 2019-09-03 15:26:44 +0200 | [diff] [blame] | 82 | |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 83 | |
Alex Bennée | cb021cf | 2014-09-24 11:13:55 +0100 | [diff] [blame] | 84 | git: |
| 85 | # we want to do this ourselves |
| 86 | submodules: false |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 87 | |
Alex Bennée | b3165c8 | 2020-02-03 09:09:25 +0000 | [diff] [blame] | 88 | # Common first phase for all steps |
| 89 | before_install: |
Thomas Huth | 312995c | 2019-10-09 19:07:00 +0200 | [diff] [blame] | 90 | - if command -v ccache ; then ccache --zero-stats ; fi |
Alex Bennée | 0a7c0ae | 2020-02-03 09:09:26 +0000 | [diff] [blame] | 91 | - export JOBS=$(($(getconf _NPROCESSORS_ONLN) + 1)) |
| 92 | - echo "=== Using ${JOBS} simultaneous jobs ===" |
Alex Bennée | b3165c8 | 2020-02-03 09:09:25 +0000 | [diff] [blame] | 93 | |
| 94 | # Configure step - may be overridden |
| 95 | before_script: |
Philippe Mathieu-Daudé | ebf2ff6 | 2018-06-21 09:26:37 -0300 | [diff] [blame] | 96 | - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} |
Alex Bennée | 570f3c7 | 2019-02-01 17:12:29 +0000 | [diff] [blame] | 97 | - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; } |
Alex Bennée | b3165c8 | 2020-02-03 09:09:25 +0000 | [diff] [blame] | 98 | |
| 99 | # Main build & test - rarely overridden - controlled by TEST_CMD |
Alex Bennée | eebf294 | 2014-09-24 11:13:54 +0100 | [diff] [blame] | 100 | script: |
Alex Bennée | 0a7c0ae | 2020-02-03 09:09:26 +0000 | [diff] [blame] | 101 | - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$? |
Alex Bennée | 4f46afd | 2020-02-03 09:09:29 +0000 | [diff] [blame] | 102 | - | |
| 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ée | ec49faa | 2020-02-03 09:09:30 +0000 | [diff] [blame] | 108 | - | |
| 109 | if [ "$BUILD_RC" -eq 0 ] ; then |
| 110 | ${TEST_CMD} ; |
| 111 | else |
| 112 | $(exit $BUILD_RC); |
| 113 | fi |
Philippe Mathieu-Daudé | bcfbf0d | 2019-09-03 15:26:44 +0200 | [diff] [blame] | 114 | after_script: |
Alex Bennée | 4f8bde5 | 2020-05-01 12:15:02 +0100 | [diff] [blame] | 115 | - df -h |
Thomas Huth | 312995c | 2019-10-09 19:07:00 +0200 | [diff] [blame] | 116 | - if command -v ccache ; then ccache --show-stats ; fi |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 117 | |
| 118 | |
Wainer dos Santos Moschetta | 321e6ea | 2020-02-25 12:46:57 +0000 | [diff] [blame] | 119 | jobs: |
Alex Bennée | fe863ab | 2013-11-06 10:43:37 +0000 | [diff] [blame] | 120 | include: |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 121 | - name: "GCC static (user)" |
| 122 | env: |
Alex Bennée | c3c1874 | 2019-06-17 16:35:22 +0100 | [diff] [blame] | 123 | - CONFIG="--disable-system --static" |
Philippe Mathieu-Daudé | 7d183c5 | 2019-09-03 15:26:48 +0200 | [diff] [blame] | 124 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
Daniel P. Berrangé | 3e09423 | 2019-01-09 16:31:07 +0000 | [diff] [blame] | 125 | |
| 126 | |
Alex Bennée | 8c3daf9 | 2019-03-19 12:09:49 +0000 | [diff] [blame] | 127 | # we split the system builds as it takes a while to build them all |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 128 | - name: "GCC (main-softmmu)" |
| 129 | env: |
Alex Bennée | 8c3daf9 | 2019-03-19 12:09:49 +0000 | [diff] [blame] | 130 | - CONFIG="--disable-user --target-list=${MAIN_SOFTMMU_TARGETS}" |
Philippe Mathieu-Daudé | 7d183c5 | 2019-09-03 15:26:48 +0200 | [diff] [blame] | 131 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
Alex Bennée | 8c3daf9 | 2019-03-19 12:09:49 +0000 | [diff] [blame] | 132 | |
| 133 | |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 134 | - name: "GCC (other-softmmu)" |
| 135 | env: |
| 136 | - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}" |
Philippe Mathieu-Daudé | 7d183c5 | 2019-09-03 15:26:48 +0200 | [diff] [blame] | 137 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
Daniel P. Berrangé | 3e09423 | 2019-01-09 16:31:07 +0000 | [diff] [blame] | 138 | |
| 139 | |
Alex Bennée | df2bb38 | 2019-02-28 10:15:29 +0000 | [diff] [blame] | 140 | # Just build tools and run minimal unit and softfloat checks |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 141 | - name: "GCC check-softfloat (user)" |
| 142 | env: |
Alex Bennée | df2bb38 | 2019-02-28 10:15:29 +0000 | [diff] [blame] | 143 | - BASE_CONFIG="--enable-tools" |
| 144 | - CONFIG="--disable-user --disable-system" |
Alex Bennée | 0a7c0ae | 2020-02-03 09:09:26 +0000 | [diff] [blame] | 145 | - TEST_CMD="make check-unit check-softfloat -j${JOBS}" |
Philippe Mathieu-Daudé | 7d183c5 | 2019-09-03 15:26:48 +0200 | [diff] [blame] | 146 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
| 147 | |
Alex Bennée | df2bb38 | 2019-02-28 10:15:29 +0000 | [diff] [blame] | 148 | |
Alex Bennée | 138382c | 2019-10-02 11:23:29 +0100 | [diff] [blame] | 149 | # --enable-debug implies --enable-debug-tcg, also runs quite a bit slower |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 150 | - name: "GCC debug (main-softmmu)" |
| 151 | env: |
Alex Bennée | 138382c | 2019-10-02 11:23:29 +0100 | [diff] [blame] | 152 | - CONFIG="--enable-debug --target-list=${MAIN_SOFTMMU_TARGETS}" |
Philippe Mathieu-Daudé | 8fb90e3 | 2019-09-03 15:26:47 +0200 | [diff] [blame] | 153 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug" |
Alex Bennée | 4e6e7df | 2019-02-20 11:28:25 +0000 | [diff] [blame] | 154 | |
| 155 | |
Alex Bennée | 138382c | 2019-10-02 11:23:29 +0100 | [diff] [blame] | 156 | # TCG debug can be run just on its own and is mostly agnostic to user/softmmu distinctions |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 157 | - name: "GCC debug (user)" |
| 158 | env: |
Alex Bennée | 4e6e7df | 2019-02-20 11:28:25 +0000 | [diff] [blame] | 159 | - CONFIG="--enable-debug-tcg --disable-system" |
Alex Bennée | 19633df | 2019-10-24 17:02:09 +0100 | [diff] [blame] | 160 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg" |
Daniel P. Berrangé | 3e09423 | 2019-01-09 16:31:07 +0000 | [diff] [blame] | 161 | |
| 162 | |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 163 | - name: "GCC some libs disabled (main-softmmu)" |
| 164 | env: |
Alex Bennée | aec2927 | 2019-03-21 12:42:56 +0000 | [diff] [blame] | 165 | - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-libusb --disable-replication --target-list=${MAIN_SOFTMMU_TARGETS}" |
Daniel P. Berrangé | 3e09423 | 2019-01-09 16:31:07 +0000 | [diff] [blame] | 166 | |
| 167 | |
Alex Bennée | 2f6c252 | 2019-03-08 15:52:13 +0000 | [diff] [blame] | 168 | # Module builds are mostly of interest to major distros |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 169 | - name: "GCC modules (main-softmmu)" |
| 170 | env: |
Alex Bennée | 8c3daf9 | 2019-03-19 12:09:49 +0000 | [diff] [blame] | 171 | - CONFIG="--enable-modules --target-list=${MAIN_SOFTMMU_TARGETS}" |
Philippe Mathieu-Daudé | 7d183c5 | 2019-09-03 15:26:48 +0200 | [diff] [blame] | 172 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
Daniel P. Berrangé | 3e09423 | 2019-01-09 16:31:07 +0000 | [diff] [blame] | 173 | |
| 174 | |
Alex Bennée | f3908ff | 2019-02-06 15:54:08 +0000 | [diff] [blame] | 175 | # 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é | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 177 | - name: "check-unit coroutine=ucontext" |
| 178 | env: |
Alex Bennée | f3908ff | 2019-02-06 15:54:08 +0000 | [diff] [blame] | 179 | - CONFIG="--with-coroutine=ucontext --disable-tcg" |
Alex Bennée | 0a7c0ae | 2020-02-03 09:09:26 +0000 | [diff] [blame] | 180 | - TEST_CMD="make check-unit -j${JOBS} V=1" |
Daniel P. Berrangé | 3e09423 | 2019-01-09 16:31:07 +0000 | [diff] [blame] | 181 | |
| 182 | |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 183 | - name: "check-unit coroutine=sigaltstack" |
| 184 | env: |
Alex Bennée | f3908ff | 2019-02-06 15:54:08 +0000 | [diff] [blame] | 185 | - CONFIG="--with-coroutine=sigaltstack --disable-tcg" |
Alex Bennée | 0a7c0ae | 2020-02-03 09:09:26 +0000 | [diff] [blame] | 186 | - TEST_CMD="make check-unit -j${JOBS} V=1" |
Daniel P. Berrangé | 3e09423 | 2019-01-09 16:31:07 +0000 | [diff] [blame] | 187 | |
| 188 | |
Alex Bennée | 956d450 | 2019-03-08 15:48:08 +0000 | [diff] [blame] | 189 | # Check we can build docs and tools (out of tree) |
Alex Bennée | 204b30e | 2020-02-03 09:09:24 +0000 | [diff] [blame] | 190 | - name: "tools and docs (bionic)" |
| 191 | dist: bionic |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 192 | env: |
Alex Bennée | 956d450 | 2019-03-08 15:48:08 +0000 | [diff] [blame] | 193 | - BUILD_DIR="out-of-tree/build/dir" SRC_DIR="../../.." |
Alex Bennée | 570f3c7 | 2019-02-01 17:12:29 +0000 | [diff] [blame] | 194 | - BASE_CONFIG="--enable-tools --enable-docs" |
| 195 | - CONFIG="--target-list=x86_64-softmmu,aarch64-linux-user" |
Philippe Mathieu-Daudé | 7d183c5 | 2019-09-03 15:26:48 +0200 | [diff] [blame] | 196 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
Alex Bennée | 570f3c7 | 2019-02-01 17:12:29 +0000 | [diff] [blame] | 197 | addons: |
| 198 | apt: |
| 199 | packages: |
Alex Bennée | 68e5b85 | 2020-02-04 10:51:42 +0000 | [diff] [blame] | 200 | - python3-sphinx |
Alex Bennée | 570f3c7 | 2019-02-01 17:12:29 +0000 | [diff] [blame] | 201 | - texinfo |
| 202 | - perl |
| 203 | |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 204 | |
Alex Bennée | ae6d692 | 2018-05-29 18:14:04 +0100 | [diff] [blame] | 205 | # Test with Clang for compile portability (Travis uses clang-5.0) |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 206 | - name: "Clang (user)" |
| 207 | env: |
Thomas Huth | 6f83cf8 | 2020-05-20 15:05:29 +0100 | [diff] [blame] | 208 | - CONFIG="--disable-system --host-cc=clang --cxx=clang++" |
Philippe Mathieu-Daudé | e2bef01 | 2019-09-03 15:26:49 +0200 | [diff] [blame] | 209 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default" |
Alex Bennée | ae6d692 | 2018-05-29 18:14:04 +0100 | [diff] [blame] | 210 | compiler: clang |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 211 | |
| 212 | |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 213 | - name: "Clang (main-softmmu)" |
| 214 | env: |
Thomas Huth | 6f83cf8 | 2020-05-20 15:05:29 +0100 | [diff] [blame] | 215 | - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS} |
| 216 | --host-cc=clang --cxx=clang++" |
Alex Bennée | b08c2ae | 2019-10-22 14:07:40 +0100 | [diff] [blame] | 217 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-sanitize" |
Alex Bennée | 7831147 | 2019-05-28 19:21:19 +0100 | [diff] [blame] | 218 | compiler: clang |
| 219 | before_script: |
Paolo Bonzini | bc4486f | 2019-12-11 15:33:49 +0100 | [diff] [blame] | 220 | - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} |
| 221 | - ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-fsanitize=undefined -Werror" || { cat config.log && exit 1; } |
Alex Bennée | 7831147 | 2019-05-28 19:21:19 +0100 | [diff] [blame] | 222 | |
| 223 | |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 224 | - name: "Clang (other-softmmu)" |
| 225 | env: |
Thomas Huth | 6f83cf8 | 2020-05-20 15:05:29 +0100 | [diff] [blame] | 226 | - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS} |
| 227 | --host-cc=clang --cxx=clang++" |
Philippe Mathieu-Daudé | e2bef01 | 2019-09-03 15:26:49 +0200 | [diff] [blame] | 228 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default" |
Daniel P. Berrange | d9a6b01 | 2016-10-27 15:23:45 +0200 | [diff] [blame] | 229 | compiler: clang |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 230 | |
| 231 | |
Alex Bennée | 6c93329 | 2016-03-15 16:12:58 +0000 | [diff] [blame] | 232 | # gprof/gcov are GCC features |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 233 | - name: "GCC gprof/gcov" |
| 234 | env: |
Alex Bennée | 8c3daf9 | 2019-03-19 12:09:49 +0000 | [diff] [blame] | 235 | - CONFIG="--enable-gprof --enable-gcov --disable-pie --target-list=${MAIN_SOFTMMU_TARGETS}" |
Alex Bennée | 0708e64 | 2018-06-20 12:00:07 +0100 | [diff] [blame] | 236 | after_success: |
| 237 | - ${SRC_DIR}/scripts/travis/coverage-summary.sh |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 238 | |
| 239 | |
Alex Bennée | 6c93329 | 2016-03-15 16:12:58 +0000 | [diff] [blame] | 240 | # We manually include builds which we disable "make check" for |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 241 | - name: "GCC without-default-devices (softmmu)" |
| 242 | env: |
Alex Bennée | 386dc51 | 2019-03-19 12:12:52 +0000 | [diff] [blame] | 243 | - CONFIG="--without-default-devices --disable-user" |
Philippe Mathieu-Daudé | 7d183c5 | 2019-09-03 15:26:48 +0200 | [diff] [blame] | 244 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
Paolo Bonzini | 20885b5 | 2019-01-31 15:57:53 +0100 | [diff] [blame] | 245 | - TEST_CMD="" |
| 246 | |
| 247 | |
Thomas Huth | 3edaa99 | 2019-12-04 09:31:33 +0100 | [diff] [blame] | 248 | # Check the TCG interpreter (TCI) |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 249 | - name: "GCC TCI" |
| 250 | env: |
Thomas Huth | 3edaa99 | 2019-12-04 09:31:33 +0100 | [diff] [blame] | 251 | - 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é | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 254 | |
| 255 | |
Alex Bennée | f8309de | 2018-06-14 11:28:20 +0100 | [diff] [blame] | 256 | # We don't need to exercise every backend with every front-end |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 257 | - name: "GCC trace log,simple,syslog (user)" |
| 258 | env: |
Daniel P. Berrangé | c21d7ef | 2019-01-09 16:31:08 +0000 | [diff] [blame] | 259 | - CONFIG="--enable-trace-backends=log,simple,syslog --disable-system" |
| 260 | - TEST_CMD="" |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 261 | |
| 262 | |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 263 | - name: "GCC trace ftrace (x86_64-softmmu)" |
| 264 | env: |
Daniel P. Berrangé | c21d7ef | 2019-01-09 16:31:08 +0000 | [diff] [blame] | 265 | - CONFIG="--enable-trace-backends=ftrace --target-list=x86_64-softmmu" |
| 266 | - TEST_CMD="" |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 267 | |
| 268 | |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 269 | - name: "GCC trace ust (x86_64-softmmu)" |
| 270 | env: |
Daniel P. Berrangé | c21d7ef | 2019-01-09 16:31:08 +0000 | [diff] [blame] | 271 | - CONFIG="--enable-trace-backends=ust --target-list=x86_64-softmmu" |
| 272 | - TEST_CMD="" |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 273 | |
| 274 | |
Alex Bennée | ae6d692 | 2018-05-29 18:14:04 +0100 | [diff] [blame] | 275 | # Python builds |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 276 | - name: "GCC Python 3.5 (x86_64-softmmu)" |
| 277 | env: |
Daniel P. Berrangé | c21d7ef | 2019-01-09 16:31:08 +0000 | [diff] [blame] | 278 | - CONFIG="--target-list=x86_64-softmmu" |
Philippe Mathieu-Daudé | 7d183c5 | 2019-09-03 15:26:48 +0200 | [diff] [blame] | 279 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
Cleber Rosa | 53fefde | 2018-11-09 10:07:09 -0500 | [diff] [blame] | 280 | language: python |
Wainer dos Santos Moschetta | 321e6ea | 2020-02-25 12:46:57 +0000 | [diff] [blame] | 281 | python: 3.5 |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 282 | |
| 283 | |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 284 | - name: "GCC Python 3.6 (x86_64-softmmu)" |
| 285 | env: |
Daniel P. Berrangé | c21d7ef | 2019-01-09 16:31:08 +0000 | [diff] [blame] | 286 | - CONFIG="--target-list=x86_64-softmmu" |
Philippe Mathieu-Daudé | 7d183c5 | 2019-09-03 15:26:48 +0200 | [diff] [blame] | 287 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
Cleber Rosa | 53fefde | 2018-11-09 10:07:09 -0500 | [diff] [blame] | 288 | language: python |
Wainer dos Santos Moschetta | 321e6ea | 2020-02-25 12:46:57 +0000 | [diff] [blame] | 289 | python: 3.6 |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 290 | |
| 291 | |
Cleber Rosa | aa983ff | 2018-10-18 11:31:34 -0400 | [diff] [blame] | 292 | # Acceptance (Functional) tests |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 293 | - name: "GCC check-acceptance" |
Alex Bennée | c2e09ad | 2020-03-03 15:06:22 +0000 | [diff] [blame] | 294 | dist: bionic |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 295 | env: |
Cleber Rosa | 6fd52d6 | 2020-03-17 10:16:53 -0400 | [diff] [blame] | 296 | - 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 Habkost | 0b98c20 | 2019-06-18 11:10:43 -0300 | [diff] [blame] | 297 | - TEST_CMD="make check-acceptance" |
Philippe Mathieu-Daudé | a41f167 | 2020-04-01 21:27:53 +0200 | [diff] [blame] | 298 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-acceptance" |
Wainer dos Santos Moschetta | 67892c9 | 2019-12-30 15:43:26 -0300 | [diff] [blame] | 299 | 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é | a41f167 | 2020-04-01 21:27:53 +0200 | [diff] [blame] | 301 | - du -chs $HOME/avocado/data/cache |
Cleber Rosa | aa983ff | 2018-10-18 11:31:34 -0400 | [diff] [blame] | 302 | addons: |
| 303 | apt: |
| 304 | packages: |
Philippe Mathieu-Daudé | 2531164 | 2019-08-13 15:49:20 +0200 | [diff] [blame] | 305 | - python3-pil |
Cleber Rosa | aa983ff | 2018-10-18 11:31:34 -0400 | [diff] [blame] | 306 | - python3-pip |
Alex Bennée | c2e09ad | 2020-03-03 15:06:22 +0000 | [diff] [blame] | 307 | - python3-numpy |
| 308 | - python3-opencv |
| 309 | - python3-venv |
Liam Merwick | 8a83708 | 2020-02-05 14:56:02 +0000 | [diff] [blame] | 310 | - rpm2cpio |
Philippe Mathieu-Daudé | 2531164 | 2019-08-13 15:49:20 +0200 | [diff] [blame] | 311 | - tesseract-ocr |
| 312 | - tesseract-ocr-eng |
| 313 | |
| 314 | |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 315 | # Using newer GCC with sanitizers |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 316 | - name: "GCC9 with sanitizers (softmmu)" |
| 317 | addons: |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 318 | apt: |
Alex Bennée | ac07ffc | 2018-05-30 09:09:31 +0100 | [diff] [blame] | 319 | update: true |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 320 | sources: |
| 321 | # PPAs for newer toolchains |
| 322 | - ubuntu-toolchain-r-test |
| 323 | packages: |
| 324 | # Extra toolchains |
Alex Bennée | 3998c25 | 2019-05-28 19:13:08 +0100 | [diff] [blame] | 325 | - gcc-9 |
| 326 | - g++-9 |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 327 | # 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 Huth | 241e795 | 2019-10-09 19:06:58 +0200 | [diff] [blame] | 342 | - libsdl2-dev |
| 343 | - libsdl2-image-dev |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 344 | - libseccomp-dev |
| 345 | - libspice-protocol-dev |
| 346 | - libspice-server-dev |
Pino Toscano | b10d49d | 2019-06-20 22:08:40 +0200 | [diff] [blame] | 347 | - libssh-dev |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 348 | - liburcu-dev |
| 349 | - libusb-1.0-0-dev |
Alex Bennée | 9531057 | 2019-01-09 10:42:00 +0000 | [diff] [blame] | 350 | - libvte-2.91-dev |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 351 | - sparse |
| 352 | - uuid-dev |
| 353 | language: generic |
| 354 | compiler: none |
| 355 | env: |
Alex Bennée | 3998c25 | 2019-05-28 19:13:08 +0100 | [diff] [blame] | 356 | - COMPILER_NAME=gcc CXX=g++-9 CC=gcc-9 |
| 357 | - CONFIG="--cc=gcc-9 --cxx=g++-9 --disable-pie --disable-linux-user" |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 358 | - TEST_CMD="" |
| 359 | before_script: |
Paolo Bonzini | bc4486f | 2019-12-11 15:33:49 +0100 | [diff] [blame] | 360 | - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} |
Paolo Bonzini | db5adea | 2019-12-11 15:34:27 +0100 | [diff] [blame] | 361 | - ${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é | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 362 | |
| 363 | |
Alex Bennée | dab3a7c | 2019-02-28 10:18:43 +0000 | [diff] [blame] | 364 | # Run check-tcg against linux-user |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 365 | - name: "GCC check-tcg (user)" |
| 366 | env: |
Alex Bennée | 2efabbe | 2019-10-23 17:47:51 +0100 | [diff] [blame] | 367 | - CONFIG="--disable-system --enable-debug-tcg" |
Alex Bennée | 73217f3 | 2020-02-03 09:09:32 +0000 | [diff] [blame] | 368 | - TEST_BUILD_CMD="make build-tcg" |
Alex Bennée | 4f46afd | 2020-02-03 09:09:29 +0000 | [diff] [blame] | 369 | - TEST_CMD="make check-tcg" |
Alex Bennée | 19633df | 2019-10-24 17:02:09 +0100 | [diff] [blame] | 370 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg" |
Philippe Mathieu-Daudé | 7d183c5 | 2019-09-03 15:26:48 +0200 | [diff] [blame] | 371 | |
Alex Bennée | dab3a7c | 2019-02-28 10:18:43 +0000 | [diff] [blame] | 372 | |
Alex Bennée | 4fbddb5 | 2019-10-11 16:41:16 +0100 | [diff] [blame] | 373 | # Run check-tcg against linux-user (with plugins) |
| 374 | # we skip sparc64-linux-user until it has been fixed somewhat |
Alex Bennée | 7986f48 | 2020-02-03 09:09:31 +0000 | [diff] [blame] | 375 | # we skip cris-linux-user as it doesn't use the common run loop |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 376 | - name: "GCC plugins check-tcg (user)" |
| 377 | env: |
Alex Bennée | 7986f48 | 2020-02-03 09:09:31 +0000 | [diff] [blame] | 378 | - CONFIG="--disable-system --enable-plugins --enable-debug-tcg --target-list-exclude=sparc64-linux-user,cris-linux-user" |
Alex Bennée | 73217f3 | 2020-02-03 09:09:32 +0000 | [diff] [blame] | 379 | - TEST_BUILD_CMD="make build-tcg" |
Alex Bennée | 4f46afd | 2020-02-03 09:09:29 +0000 | [diff] [blame] | 380 | - TEST_CMD="make check-tcg" |
Alex Bennée | 19633df | 2019-10-24 17:02:09 +0100 | [diff] [blame] | 381 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg" |
Daniel P. Berrangé | e2576f9 | 2019-01-09 16:31:13 +0000 | [diff] [blame] | 382 | |
Alex Bennée | dab3a7c | 2019-02-28 10:18:43 +0000 | [diff] [blame] | 383 | |
| 384 | # Run check-tcg against softmmu targets |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 385 | - name: "GCC check-tcg (some-softmmu)" |
| 386 | env: |
Alex Bennée | 2efabbe | 2019-10-23 17:47:51 +0100 | [diff] [blame] | 387 | - CONFIG="--enable-debug-tcg --target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu" |
Alex Bennée | c9331e9 | 2020-02-25 12:46:58 +0000 | [diff] [blame] | 388 | - TEST_BUILD_CMD="make build-tcg" |
Alex Bennée | 4f46afd | 2020-02-03 09:09:29 +0000 | [diff] [blame] | 389 | - TEST_CMD="make check-tcg" |
Alex Bennée | 19633df | 2019-10-24 17:02:09 +0100 | [diff] [blame] | 390 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg" |
Philippe Mathieu-Daudé | 61ac3dc | 2019-10-07 18:04:49 +0200 | [diff] [blame] | 391 | |
| 392 | |
Alex Bennée | 4fbddb5 | 2019-10-11 16:41:16 +0100 | [diff] [blame] | 393 | # Run check-tcg against softmmu targets (with plugins) |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 394 | - name: "GCC plugins check-tcg (some-softmmu)" |
| 395 | env: |
Alex Bennée | 19633df | 2019-10-24 17:02:09 +0100 | [diff] [blame] | 396 | - CONFIG="--enable-plugins --enable-debug-tcg --target-list=xtensa-softmmu,arm-softmmu,aarch64-softmmu,alpha-softmmu" |
Alex Bennée | c9331e9 | 2020-02-25 12:46:58 +0000 | [diff] [blame] | 397 | - TEST_BUILD_CMD="make build-tcg" |
Alex Bennée | 4f46afd | 2020-02-03 09:09:29 +0000 | [diff] [blame] | 398 | - TEST_CMD="make check-tcg" |
Alex Bennée | 19633df | 2019-10-24 17:02:09 +0100 | [diff] [blame] | 399 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg" |
Philippe Mathieu-Daudé | 61ac3dc | 2019-10-07 18:04:49 +0200 | [diff] [blame] | 400 | |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 401 | - name: "[aarch64] GCC check-tcg" |
| 402 | arch: arm64 |
Thomas Huth | 9c5941a | 2019-12-04 16:46:18 +0100 | [diff] [blame] | 403 | 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 Moschetta | 58a1e5b | 2020-02-03 09:09:19 +0000 | [diff] [blame] | 427 | # Tests dependencies |
| 428 | - genisoimage |
Thomas Huth | 9c5941a | 2019-12-04 16:46:18 +0100 | [diff] [blame] | 429 | env: |
| 430 | - TEST_CMD="make check check-tcg V=1" |
| 431 | - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS}" |
| 432 | |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 433 | - name: "[ppc64] GCC check-tcg" |
| 434 | arch: ppc64le |
Thomas Huth | 9c5941a | 2019-12-04 16:46:18 +0100 | [diff] [blame] | 435 | 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 Moschetta | 58a1e5b | 2020-02-03 09:09:19 +0000 | [diff] [blame] | 459 | # Tests dependencies |
| 460 | - genisoimage |
Thomas Huth | 9c5941a | 2019-12-04 16:46:18 +0100 | [diff] [blame] | 461 | env: |
| 462 | - TEST_CMD="make check check-tcg V=1" |
Alex Bennée | daee97f | 2020-05-01 12:15:05 +0100 | [diff] [blame] | 463 | - CONFIG="--disable-containers --target-list=ppc64-softmmu,ppc64le-linux-user" |
Thomas Huth | 9c5941a | 2019-12-04 16:46:18 +0100 | [diff] [blame] | 464 | |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 465 | - name: "[s390x] GCC check-tcg" |
| 466 | arch: s390x |
Thomas Huth | 9c5941a | 2019-12-04 16:46:18 +0100 | [diff] [blame] | 467 | 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 Moschetta | 58a1e5b | 2020-02-03 09:09:19 +0000 | [diff] [blame] | 491 | # Tests dependencies |
| 492 | - genisoimage |
Thomas Huth | 9c5941a | 2019-12-04 16:46:18 +0100 | [diff] [blame] | 493 | env: |
| 494 | - TEST_CMD="make check check-tcg V=1" |
| 495 | - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS},s390x-linux-user" |
Thomas Huth | 31c8cc4 | 2020-02-25 12:46:56 +0000 | [diff] [blame] | 496 | 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é | 61ac3dc | 2019-10-07 18:04:49 +0200 | [diff] [blame] | 506 | |
Thomas Huth | aae8b87 | 2020-05-13 18:51:26 +0100 | [diff] [blame] | 507 | - name: "[s390x] Clang (disable-tcg)" |
Philippe Mathieu-Daudé | 41e1f0e | 2020-03-23 16:15:14 +0000 | [diff] [blame] | 508 | arch: s390x |
| 509 | dist: bionic |
Thomas Huth | aae8b87 | 2020-05-13 18:51:26 +0100 | [diff] [blame] | 510 | compiler: clang |
Philippe Mathieu-Daudé | 41e1f0e | 2020-03-23 16:15:14 +0000 | [diff] [blame] | 511 | 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é | 41e1f0e | 2020-03-23 16:15:14 +0000 | [diff] [blame] | 534 | env: |
| 535 | - TEST_CMD="make check-unit" |
Thomas Huth | aae8b87 | 2020-05-13 18:51:26 +0100 | [diff] [blame] | 536 | - CONFIG="--disable-containers --disable-tcg --enable-kvm |
| 537 | --disable-tools --host-cc=clang --cxx=clang++" |
Philippe Mathieu-Daudé | 41e1f0e | 2020-03-23 16:15:14 +0000 | [diff] [blame] | 538 | |
Philippe Mathieu-Daudé | 61ac3dc | 2019-10-07 18:04:49 +0200 | [diff] [blame] | 539 | # 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é | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 542 | - name: "Release tarball" |
| 543 | if: tag IS present AND tag =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/ |
Philippe Mathieu-Daudé | 61ac3dc | 2019-10-07 18:04:49 +0200 | [diff] [blame] | 544 | 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ée | 0a7c0ae | 2020-02-03 09:09:26 +0000 | [diff] [blame] | 549 | - TEST_CMD="make install -j${JOBS}" |
Philippe Mathieu-Daudé | 61ac3dc | 2019-10-07 18:04:49 +0200 | [diff] [blame] | 550 | - QEMU_VERSION="${TRAVIS_TAG:1}" |
| 551 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
Philippe Mathieu-Daudé | 61ac3dc | 2019-10-07 18:04:49 +0200 | [diff] [blame] | 552 | 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 Bonzini | bc4486f | 2019-12-11 15:33:49 +0100 | [diff] [blame] | 556 | - mkdir -p release-build && cd release-build |
| 557 | - ../configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; } |
Philippe Mathieu-Daudé | 61ac3dc | 2019-10-07 18:04:49 +0200 | [diff] [blame] | 558 | - make install |