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 |
Thomas Huth | e769905 | 2020-09-25 16:40:18 +0100 | [diff] [blame] | 5 | dist: focal |
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) |
Thomas Huth | e769905 | 2020-09-25 16:40:18 +0100 | [diff] [blame] | 13 | # - OS distribution (for Linux, bionic or focal) |
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 |
Thomas Huth | e769905 | 2020-09-25 16:40:18 +0100 | [diff] [blame] | 30 | - libgcc-7-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 |
Paolo Bonzini | 345d705 | 2020-08-13 09:58:50 -0400 | [diff] [blame] | 52 | - ninja-build |
Alex Bennée | 692d162 | 2016-01-14 19:21:16 +0000 | [diff] [blame] | 53 | - sparse |
| 54 | - uuid-dev |
Alex Bennée | 0708e64 | 2018-06-20 12:00:07 +0100 | [diff] [blame] | 55 | - gcovr |
Wainer dos Santos Moschetta | 58a1e5b | 2020-02-03 09:09:19 +0000 | [diff] [blame] | 56 | # Tests dependencies |
| 57 | - genisoimage |
Alex Bennée | 692d162 | 2016-01-14 19:21:16 +0000 | [diff] [blame] | 58 | |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 59 | |
Pranith Kumar | cb4c253 | 2016-06-27 14:13:22 -0400 | [diff] [blame] | 60 | # The channel name "irc.oftc.net#qemu" is encrypted against qemu/qemu |
| 61 | # to prevent IRC notifications from forks. This was created using: |
| 62 | # $ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu" |
Alex Bennée | 39d16d2 | 2014-03-12 14:13:53 +0000 | [diff] [blame] | 63 | notifications: |
| 64 | irc: |
| 65 | channels: |
Pranith Kumar | cb4c253 | 2016-06-27 14:13:22 -0400 | [diff] [blame] | 66 | - secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1KWKjZe9KDTZWppWRYVwAwQMzVeSOsbbU4tRoJ6Pp+3qhH1Z0eGYR9ZgKYAoTumDFgSAYRp4IscKS8jkoedOqM=" |
Alex Bennée | 39d16d2 | 2014-03-12 14:13:53 +0000 | [diff] [blame] | 67 | on_success: change |
| 68 | on_failure: always |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 69 | |
| 70 | |
Alex Bennée | fe863ab | 2013-11-06 10:43:37 +0000 | [diff] [blame] | 71 | env: |
| 72 | global: |
Paolo Bonzini | bc4486f | 2019-12-11 15:33:49 +0100 | [diff] [blame] | 73 | - SRC_DIR=".." |
| 74 | - BUILD_DIR="build" |
Alex Bennée | 570f3c7 | 2019-02-01 17:12:29 +0000 | [diff] [blame] | 75 | - BASE_CONFIG="--disable-docs --disable-tools" |
Alex Bennée | 4f46afd | 2020-02-03 09:09:29 +0000 | [diff] [blame] | 76 | - TEST_BUILD_CMD="" |
Alex Bennée | 05273a4 | 2019-11-07 10:47:03 +0000 | [diff] [blame] | 77 | - TEST_CMD="make check V=1" |
Alex Bennée | 8c3daf9 | 2019-03-19 12:09:49 +0000 | [diff] [blame] | 78 | # 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] | 79 | - 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] | 80 | - CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime" |
| 81 | - CCACHE_MAXSIZE=1G |
Philippe Mathieu-Daudé | 2dbd39c | 2020-03-16 17:21:32 +0000 | [diff] [blame] | 82 | - G_MESSAGES_DEBUG=error |
Philippe Mathieu-Daudé | bcfbf0d | 2019-09-03 15:26:44 +0200 | [diff] [blame] | 83 | |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 84 | |
Alex Bennée | cb021cf | 2014-09-24 11:13:55 +0100 | [diff] [blame] | 85 | git: |
| 86 | # we want to do this ourselves |
| 87 | submodules: false |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 88 | |
Alex Bennée | b3165c8 | 2020-02-03 09:09:25 +0000 | [diff] [blame] | 89 | # Common first phase for all steps |
| 90 | before_install: |
Thomas Huth | 312995c | 2019-10-09 19:07:00 +0200 | [diff] [blame] | 91 | - if command -v ccache ; then ccache --zero-stats ; fi |
Alex Bennée | 0a7c0ae | 2020-02-03 09:09:26 +0000 | [diff] [blame] | 92 | - export JOBS=$(($(getconf _NPROCESSORS_ONLN) + 1)) |
| 93 | - echo "=== Using ${JOBS} simultaneous jobs ===" |
Alex Bennée | b3165c8 | 2020-02-03 09:09:25 +0000 | [diff] [blame] | 94 | |
| 95 | # Configure step - may be overridden |
| 96 | before_script: |
Philippe Mathieu-Daudé | ebf2ff6 | 2018-06-21 09:26:37 -0300 | [diff] [blame] | 97 | - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} |
Paolo Bonzini | c47110d | 2020-10-16 05:49:28 -0400 | [diff] [blame] | 98 | - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log meson-logs/meson-log.txt && exit 1; } |
Alex Bennée | b3165c8 | 2020-02-03 09:09:25 +0000 | [diff] [blame] | 99 | |
| 100 | # Main build & test - rarely overridden - controlled by TEST_CMD |
Alex Bennée | eebf294 | 2014-09-24 11:13:54 +0100 | [diff] [blame] | 101 | script: |
Alex Bennée | 0a7c0ae | 2020-02-03 09:09:26 +0000 | [diff] [blame] | 102 | - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$? |
Alex Bennée | 4f46afd | 2020-02-03 09:09:29 +0000 | [diff] [blame] | 103 | - | |
| 104 | if [ "$BUILD_RC" -eq 0 ] && [ -n "$TEST_BUILD_CMD" ]; then |
| 105 | ${TEST_BUILD_CMD} || BUILD_RC=$? |
| 106 | else |
| 107 | $(exit $BUILD_RC); |
| 108 | fi |
Alex Bennée | ec49faa | 2020-02-03 09:09:30 +0000 | [diff] [blame] | 109 | - | |
| 110 | if [ "$BUILD_RC" -eq 0 ] ; then |
| 111 | ${TEST_CMD} ; |
| 112 | else |
| 113 | $(exit $BUILD_RC); |
| 114 | fi |
Philippe Mathieu-Daudé | bcfbf0d | 2019-09-03 15:26:44 +0200 | [diff] [blame] | 115 | after_script: |
Alex Bennée | 4f8bde5 | 2020-05-01 12:15:02 +0100 | [diff] [blame] | 116 | - df -h |
Thomas Huth | 312995c | 2019-10-09 19:07:00 +0200 | [diff] [blame] | 117 | - if command -v ccache ; then ccache --show-stats ; fi |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 118 | |
| 119 | |
Wainer dos Santos Moschetta | 321e6ea | 2020-02-25 12:46:57 +0000 | [diff] [blame] | 120 | jobs: |
Alex Bennée | fe863ab | 2013-11-06 10:43:37 +0000 | [diff] [blame] | 121 | include: |
Alex Bennée | 138382c | 2019-10-02 11:23:29 +0100 | [diff] [blame] | 122 | # --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] | 123 | - name: "GCC debug (main-softmmu)" |
| 124 | env: |
Alex Bennée | 138382c | 2019-10-02 11:23:29 +0100 | [diff] [blame] | 125 | - CONFIG="--enable-debug --target-list=${MAIN_SOFTMMU_TARGETS}" |
Philippe Mathieu-Daudé | 8fb90e3 | 2019-09-03 15:26:47 +0200 | [diff] [blame] | 126 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug" |
Alex Bennée | 4e6e7df | 2019-02-20 11:28:25 +0000 | [diff] [blame] | 127 | |
| 128 | |
Alex Bennée | 138382c | 2019-10-02 11:23:29 +0100 | [diff] [blame] | 129 | # 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] | 130 | - name: "GCC debug (user)" |
| 131 | env: |
Alex Bennée | 4e6e7df | 2019-02-20 11:28:25 +0000 | [diff] [blame] | 132 | - CONFIG="--enable-debug-tcg --disable-system" |
Alex Bennée | 19633df | 2019-10-24 17:02:09 +0100 | [diff] [blame] | 133 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg" |
Daniel P. Berrangé | 3e09423 | 2019-01-09 16:31:07 +0000 | [diff] [blame] | 134 | |
Alex Bennée | 2f6c252 | 2019-03-08 15:52:13 +0000 | [diff] [blame] | 135 | # Module builds are mostly of interest to major distros |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 136 | - name: "GCC modules (main-softmmu)" |
| 137 | env: |
Alex Bennée | 8c3daf9 | 2019-03-19 12:09:49 +0000 | [diff] [blame] | 138 | - CONFIG="--enable-modules --target-list=${MAIN_SOFTMMU_TARGETS}" |
Philippe Mathieu-Daudé | 7d183c5 | 2019-09-03 15:26:48 +0200 | [diff] [blame] | 139 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
Daniel P. Berrangé | 3e09423 | 2019-01-09 16:31:07 +0000 | [diff] [blame] | 140 | |
| 141 | |
Alex Bennée | ae6d692 | 2018-05-29 18:14:04 +0100 | [diff] [blame] | 142 | # Test with Clang for compile portability (Travis uses clang-5.0) |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 143 | - name: "Clang (user)" |
| 144 | env: |
Thomas Huth | 6f83cf8 | 2020-05-20 15:05:29 +0100 | [diff] [blame] | 145 | - CONFIG="--disable-system --host-cc=clang --cxx=clang++" |
Philippe Mathieu-Daudé | e2bef01 | 2019-09-03 15:26:49 +0200 | [diff] [blame] | 146 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default" |
Alex Bennée | ae6d692 | 2018-05-29 18:14:04 +0100 | [diff] [blame] | 147 | compiler: clang |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 148 | |
| 149 | |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 150 | - name: "Clang (main-softmmu)" |
| 151 | env: |
Thomas Huth | 6f83cf8 | 2020-05-20 15:05:29 +0100 | [diff] [blame] | 152 | - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS} |
| 153 | --host-cc=clang --cxx=clang++" |
Alex Bennée | b08c2ae | 2019-10-22 14:07:40 +0100 | [diff] [blame] | 154 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-sanitize" |
Alex Bennée | 7831147 | 2019-05-28 19:21:19 +0100 | [diff] [blame] | 155 | compiler: clang |
| 156 | before_script: |
Paolo Bonzini | bc4486f | 2019-12-11 15:33:49 +0100 | [diff] [blame] | 157 | - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} |
Paolo Bonzini | c47110d | 2020-10-16 05:49:28 -0400 | [diff] [blame] | 158 | - ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-fsanitize=undefined -Werror" || { cat config.log meson-logs/meson-log.txt && exit 1; } |
Alex Bennée | 7831147 | 2019-05-28 19:21:19 +0100 | [diff] [blame] | 159 | |
| 160 | |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 161 | - name: "Clang (other-softmmu)" |
| 162 | env: |
Thomas Huth | 6f83cf8 | 2020-05-20 15:05:29 +0100 | [diff] [blame] | 163 | - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS} |
| 164 | --host-cc=clang --cxx=clang++" |
Philippe Mathieu-Daudé | e2bef01 | 2019-09-03 15:26:49 +0200 | [diff] [blame] | 165 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default" |
Daniel P. Berrange | d9a6b01 | 2016-10-27 15:23:45 +0200 | [diff] [blame] | 166 | compiler: clang |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 167 | |
| 168 | |
Alex Bennée | 6c93329 | 2016-03-15 16:12:58 +0000 | [diff] [blame] | 169 | # gprof/gcov are GCC features |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 170 | - name: "GCC gprof/gcov" |
Thomas Huth | e769905 | 2020-09-25 16:40:18 +0100 | [diff] [blame] | 171 | dist: bionic |
Paolo Bonzini | 345d705 | 2020-08-13 09:58:50 -0400 | [diff] [blame] | 172 | addons: |
| 173 | apt: |
| 174 | packages: |
| 175 | - ninja-build |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 176 | env: |
Thomas Huth | e769905 | 2020-09-25 16:40:18 +0100 | [diff] [blame] | 177 | - CONFIG="--enable-gprof --enable-gcov --disable-libssh |
| 178 | --target-list=${MAIN_SOFTMMU_TARGETS}" |
Alex Bennée | 0708e64 | 2018-06-20 12:00:07 +0100 | [diff] [blame] | 179 | after_success: |
| 180 | - ${SRC_DIR}/scripts/travis/coverage-summary.sh |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 181 | |
| 182 | |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 183 | # Using newer GCC with sanitizers |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 184 | - name: "GCC9 with sanitizers (softmmu)" |
Thomas Huth | e769905 | 2020-09-25 16:40:18 +0100 | [diff] [blame] | 185 | dist: bionic |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 186 | addons: |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 187 | apt: |
Alex Bennée | ac07ffc | 2018-05-30 09:09:31 +0100 | [diff] [blame] | 188 | update: true |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 189 | sources: |
| 190 | # PPAs for newer toolchains |
| 191 | - ubuntu-toolchain-r-test |
| 192 | packages: |
| 193 | # Extra toolchains |
Alex Bennée | 3998c25 | 2019-05-28 19:13:08 +0100 | [diff] [blame] | 194 | - gcc-9 |
| 195 | - g++-9 |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 196 | # Build dependencies |
| 197 | - libaio-dev |
| 198 | - libattr1-dev |
| 199 | - libbrlapi-dev |
| 200 | - libcap-ng-dev |
Thomas Huth | e769905 | 2020-09-25 16:40:18 +0100 | [diff] [blame] | 201 | - libgnutls28-dev |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 202 | - libgtk-3-dev |
| 203 | - libiscsi-dev |
| 204 | - liblttng-ust-dev |
| 205 | - libnfs-dev |
| 206 | - libncurses5-dev |
| 207 | - libnss3-dev |
| 208 | - libpixman-1-dev |
Thomas Huth | e769905 | 2020-09-25 16:40:18 +0100 | [diff] [blame] | 209 | - libpng-dev |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 210 | - librados-dev |
Thomas Huth | 241e795 | 2019-10-09 19:06:58 +0200 | [diff] [blame] | 211 | - libsdl2-dev |
| 212 | - libsdl2-image-dev |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 213 | - libseccomp-dev |
| 214 | - libspice-protocol-dev |
| 215 | - libspice-server-dev |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 216 | - liburcu-dev |
| 217 | - libusb-1.0-0-dev |
Alex Bennée | 9531057 | 2019-01-09 10:42:00 +0000 | [diff] [blame] | 218 | - libvte-2.91-dev |
Paolo Bonzini | 345d705 | 2020-08-13 09:58:50 -0400 | [diff] [blame] | 219 | - ninja-build |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 220 | - sparse |
| 221 | - uuid-dev |
| 222 | language: generic |
| 223 | compiler: none |
| 224 | env: |
Alex Bennée | 3998c25 | 2019-05-28 19:13:08 +0100 | [diff] [blame] | 225 | - COMPILER_NAME=gcc CXX=g++-9 CC=gcc-9 |
Thomas Huth | e769905 | 2020-09-25 16:40:18 +0100 | [diff] [blame] | 226 | - CONFIG="--cc=gcc-9 --cxx=g++-9 --disable-linux-user" |
Alex Bennée | 3226528 | 2016-09-30 22:31:03 +0100 | [diff] [blame] | 227 | - TEST_CMD="" |
| 228 | before_script: |
Paolo Bonzini | bc4486f | 2019-12-11 15:33:49 +0100 | [diff] [blame] | 229 | - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} |
Paolo Bonzini | c47110d | 2020-10-16 05:49:28 -0400 | [diff] [blame] | 230 | - ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-g3 -O0 -fsanitize=thread" || { cat config.log meson-logs/meson-log.txt && exit 1; } |
Daniel P. Berrangé | 197be69 | 2019-01-09 16:31:06 +0000 | [diff] [blame] | 231 | |
| 232 | |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 233 | - name: "[aarch64] GCC check-tcg" |
| 234 | arch: arm64 |
Thomas Huth | e769905 | 2020-09-25 16:40:18 +0100 | [diff] [blame] | 235 | dist: focal |
Thomas Huth | 9c5941a | 2019-12-04 16:46:18 +0100 | [diff] [blame] | 236 | addons: |
| 237 | apt_packages: |
| 238 | - libaio-dev |
| 239 | - libattr1-dev |
| 240 | - libbrlapi-dev |
| 241 | - libcap-ng-dev |
| 242 | - libgcrypt20-dev |
| 243 | - libgnutls28-dev |
| 244 | - libgtk-3-dev |
| 245 | - libiscsi-dev |
| 246 | - liblttng-ust-dev |
| 247 | - libncurses5-dev |
| 248 | - libnfs-dev |
| 249 | - libnss3-dev |
| 250 | - libpixman-1-dev |
| 251 | - libpng-dev |
| 252 | - librados-dev |
| 253 | - libsdl2-dev |
| 254 | - libseccomp-dev |
| 255 | - liburcu-dev |
| 256 | - libusb-1.0-0-dev |
| 257 | - libvdeplug-dev |
| 258 | - libvte-2.91-dev |
Paolo Bonzini | 345d705 | 2020-08-13 09:58:50 -0400 | [diff] [blame] | 259 | - ninja-build |
Wainer dos Santos Moschetta | 58a1e5b | 2020-02-03 09:09:19 +0000 | [diff] [blame] | 260 | # Tests dependencies |
| 261 | - genisoimage |
Thomas Huth | 9c5941a | 2019-12-04 16:46:18 +0100 | [diff] [blame] | 262 | env: |
| 263 | - TEST_CMD="make check check-tcg V=1" |
| 264 | - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS}" |
Alex Bennée | 1de8e4c | 2020-06-05 16:49:20 +0100 | [diff] [blame] | 265 | - UNRELIABLE=true |
Thomas Huth | 9c5941a | 2019-12-04 16:46:18 +0100 | [diff] [blame] | 266 | |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 267 | - name: "[ppc64] GCC check-tcg" |
| 268 | arch: ppc64le |
Thomas Huth | e769905 | 2020-09-25 16:40:18 +0100 | [diff] [blame] | 269 | dist: focal |
Thomas Huth | 9c5941a | 2019-12-04 16:46:18 +0100 | [diff] [blame] | 270 | addons: |
| 271 | apt_packages: |
| 272 | - libaio-dev |
| 273 | - libattr1-dev |
| 274 | - libbrlapi-dev |
| 275 | - libcap-ng-dev |
| 276 | - libgcrypt20-dev |
| 277 | - libgnutls28-dev |
| 278 | - libgtk-3-dev |
| 279 | - libiscsi-dev |
| 280 | - liblttng-ust-dev |
| 281 | - libncurses5-dev |
| 282 | - libnfs-dev |
| 283 | - libnss3-dev |
| 284 | - libpixman-1-dev |
| 285 | - libpng-dev |
| 286 | - librados-dev |
| 287 | - libsdl2-dev |
| 288 | - libseccomp-dev |
| 289 | - liburcu-dev |
| 290 | - libusb-1.0-0-dev |
| 291 | - libvdeplug-dev |
| 292 | - libvte-2.91-dev |
Paolo Bonzini | 345d705 | 2020-08-13 09:58:50 -0400 | [diff] [blame] | 293 | - ninja-build |
Wainer dos Santos Moschetta | 58a1e5b | 2020-02-03 09:09:19 +0000 | [diff] [blame] | 294 | # Tests dependencies |
| 295 | - genisoimage |
Thomas Huth | 9c5941a | 2019-12-04 16:46:18 +0100 | [diff] [blame] | 296 | env: |
| 297 | - TEST_CMD="make check check-tcg V=1" |
Alex Bennée | daee97f | 2020-05-01 12:15:05 +0100 | [diff] [blame] | 298 | - CONFIG="--disable-containers --target-list=ppc64-softmmu,ppc64le-linux-user" |
Thomas Huth | 9c5941a | 2019-12-04 16:46:18 +0100 | [diff] [blame] | 299 | |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 300 | - name: "[s390x] GCC check-tcg" |
| 301 | arch: s390x |
Thomas Huth | 9c5941a | 2019-12-04 16:46:18 +0100 | [diff] [blame] | 302 | dist: bionic |
| 303 | addons: |
| 304 | apt_packages: |
| 305 | - libaio-dev |
| 306 | - libattr1-dev |
| 307 | - libbrlapi-dev |
| 308 | - libcap-ng-dev |
| 309 | - libgcrypt20-dev |
| 310 | - libgnutls28-dev |
| 311 | - libgtk-3-dev |
| 312 | - libiscsi-dev |
| 313 | - liblttng-ust-dev |
| 314 | - libncurses5-dev |
| 315 | - libnfs-dev |
| 316 | - libnss3-dev |
| 317 | - libpixman-1-dev |
| 318 | - libpng-dev |
| 319 | - librados-dev |
| 320 | - libsdl2-dev |
| 321 | - libseccomp-dev |
| 322 | - liburcu-dev |
| 323 | - libusb-1.0-0-dev |
| 324 | - libvdeplug-dev |
| 325 | - libvte-2.91-dev |
Paolo Bonzini | 345d705 | 2020-08-13 09:58:50 -0400 | [diff] [blame] | 326 | - ninja-build |
Wainer dos Santos Moschetta | 58a1e5b | 2020-02-03 09:09:19 +0000 | [diff] [blame] | 327 | # Tests dependencies |
| 328 | - genisoimage |
Thomas Huth | 9c5941a | 2019-12-04 16:46:18 +0100 | [diff] [blame] | 329 | env: |
| 330 | - TEST_CMD="make check check-tcg V=1" |
| 331 | - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS},s390x-linux-user" |
Alex Bennée | 1de8e4c | 2020-06-05 16:49:20 +0100 | [diff] [blame] | 332 | - UNRELIABLE=true |
Thomas Huth | 31c8cc4 | 2020-02-25 12:46:56 +0000 | [diff] [blame] | 333 | script: |
Thomas Huth | 31c8cc4 | 2020-02-25 12:46:56 +0000 | [diff] [blame] | 334 | - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$? |
| 335 | - | |
| 336 | if [ "$BUILD_RC" -eq 0 ] ; then |
| 337 | mv pc-bios/s390-ccw/*.img pc-bios/ ; |
| 338 | ${TEST_CMD} ; |
| 339 | else |
| 340 | $(exit $BUILD_RC); |
| 341 | fi |
Philippe Mathieu-Daudé | 61ac3dc | 2019-10-07 18:04:49 +0200 | [diff] [blame] | 342 | |
Thomas Huth | 100a5ef | 2020-06-08 13:40:49 +0200 | [diff] [blame] | 343 | - name: "[s390x] GCC (other-softmmu)" |
| 344 | arch: s390x |
| 345 | dist: bionic |
| 346 | addons: |
| 347 | apt_packages: |
| 348 | - libaio-dev |
| 349 | - libattr1-dev |
| 350 | - libcap-ng-dev |
| 351 | - libgnutls28-dev |
| 352 | - libiscsi-dev |
| 353 | - liblttng-ust-dev |
| 354 | - liblzo2-dev |
| 355 | - libncurses-dev |
| 356 | - libnfs-dev |
| 357 | - libnss3-dev |
| 358 | - libpixman-1-dev |
| 359 | - libsdl2-dev |
| 360 | - libsdl2-image-dev |
| 361 | - libseccomp-dev |
| 362 | - libsnappy-dev |
| 363 | - libzstd-dev |
| 364 | - nettle-dev |
| 365 | - xfslibs-dev |
Paolo Bonzini | 345d705 | 2020-08-13 09:58:50 -0400 | [diff] [blame] | 366 | - ninja-build |
Thomas Huth | 100a5ef | 2020-06-08 13:40:49 +0200 | [diff] [blame] | 367 | # Tests dependencies |
| 368 | - genisoimage |
| 369 | env: |
| 370 | - CONFIG="--disable-containers --audio-drv-list=sdl --disable-user |
| 371 | --target-list-exclude=${MAIN_SOFTMMU_TARGETS}" |
| 372 | |
| 373 | - name: "[s390x] GCC (user)" |
| 374 | arch: s390x |
| 375 | dist: bionic |
| 376 | addons: |
| 377 | apt_packages: |
| 378 | - libgcrypt20-dev |
| 379 | - libgnutls28-dev |
Paolo Bonzini | 345d705 | 2020-08-13 09:58:50 -0400 | [diff] [blame] | 380 | - ninja-build |
Thomas Huth | 100a5ef | 2020-06-08 13:40:49 +0200 | [diff] [blame] | 381 | env: |
| 382 | - CONFIG="--disable-containers --disable-system" |
| 383 | |
Thomas Huth | aae8b87 | 2020-05-13 18:51:26 +0100 | [diff] [blame] | 384 | - name: "[s390x] Clang (disable-tcg)" |
Philippe Mathieu-Daudé | 41e1f0e | 2020-03-23 16:15:14 +0000 | [diff] [blame] | 385 | arch: s390x |
| 386 | dist: bionic |
Thomas Huth | aae8b87 | 2020-05-13 18:51:26 +0100 | [diff] [blame] | 387 | compiler: clang |
Philippe Mathieu-Daudé | 41e1f0e | 2020-03-23 16:15:14 +0000 | [diff] [blame] | 388 | addons: |
| 389 | apt_packages: |
| 390 | - libaio-dev |
| 391 | - libattr1-dev |
| 392 | - libbrlapi-dev |
| 393 | - libcap-ng-dev |
| 394 | - libgcrypt20-dev |
| 395 | - libgnutls28-dev |
| 396 | - libgtk-3-dev |
| 397 | - libiscsi-dev |
| 398 | - liblttng-ust-dev |
| 399 | - libncurses5-dev |
| 400 | - libnfs-dev |
| 401 | - libnss3-dev |
| 402 | - libpixman-1-dev |
| 403 | - libpng-dev |
| 404 | - librados-dev |
| 405 | - libsdl2-dev |
| 406 | - libseccomp-dev |
| 407 | - liburcu-dev |
| 408 | - libusb-1.0-0-dev |
| 409 | - libvdeplug-dev |
| 410 | - libvte-2.91-dev |
Paolo Bonzini | 345d705 | 2020-08-13 09:58:50 -0400 | [diff] [blame] | 411 | - ninja-build |
Philippe Mathieu-Daudé | 41e1f0e | 2020-03-23 16:15:14 +0000 | [diff] [blame] | 412 | env: |
| 413 | - TEST_CMD="make check-unit" |
Thomas Huth | aae8b87 | 2020-05-13 18:51:26 +0100 | [diff] [blame] | 414 | - CONFIG="--disable-containers --disable-tcg --enable-kvm |
| 415 | --disable-tools --host-cc=clang --cxx=clang++" |
Alex Bennée | 1de8e4c | 2020-06-05 16:49:20 +0100 | [diff] [blame] | 416 | - UNRELIABLE=true |
Philippe Mathieu-Daudé | 41e1f0e | 2020-03-23 16:15:14 +0000 | [diff] [blame] | 417 | |
Philippe Mathieu-Daudé | 61ac3dc | 2019-10-07 18:04:49 +0200 | [diff] [blame] | 418 | # Release builds |
| 419 | # The make-release script expect a QEMU version, so our tag must start with a 'v'. |
| 420 | # This is the case when release candidate tags are created. |
Philippe Mathieu-Daudé | 097aebd | 2020-02-03 09:09:23 +0000 | [diff] [blame] | 421 | - name: "Release tarball" |
| 422 | if: tag IS present AND tag =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/ |
Philippe Mathieu-Daudé | 61ac3dc | 2019-10-07 18:04:49 +0200 | [diff] [blame] | 423 | env: |
| 424 | # We want to build from the release tarball |
| 425 | - BUILD_DIR="release/build/dir" SRC_DIR="../../.." |
| 426 | - BASE_CONFIG="--prefix=$PWD/dist" |
| 427 | - 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] | 428 | - TEST_CMD="make install -j${JOBS}" |
Philippe Mathieu-Daudé | 61ac3dc | 2019-10-07 18:04:49 +0200 | [diff] [blame] | 429 | - QEMU_VERSION="${TRAVIS_TAG:1}" |
| 430 | - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" |
Philippe Mathieu-Daudé | 61ac3dc | 2019-10-07 18:04:49 +0200 | [diff] [blame] | 431 | script: |
| 432 | - make -C ${SRC_DIR} qemu-${QEMU_VERSION}.tar.bz2 |
| 433 | - ls -l ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2 |
| 434 | - 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] | 435 | - mkdir -p release-build && cd release-build |
Paolo Bonzini | c47110d | 2020-10-16 05:49:28 -0400 | [diff] [blame] | 436 | - ../configure ${BASE_CONFIG} ${CONFIG} || { cat config.log meson-logs/meson-log.txt && exit 1; } |
Philippe Mathieu-Daudé | 61ac3dc | 2019-10-07 18:04:49 +0200 | [diff] [blame] | 437 | - make install |
Alex Bennée | 1de8e4c | 2020-06-05 16:49:20 +0100 | [diff] [blame] | 438 | allow_failures: |
| 439 | - env: UNRELIABLE=true |