7 # There is one cache per branch and compiler version.
8 # characteristics of each job are used to identify the cache:
9 # - OS name (currently only linux)
10 # - OS distribution (for Linux, bionic or focal)
11 # - Names and values of visible environment variables set in .travis.yml or Settings panel
16 - $HOME/avocado/data/cache
41 - libspice-protocol-dev
56 # The channel name "irc.oftc.net#qemu" is encrypted against qemu/qemu
57 # to prevent IRC notifications from forks. This was created using:
58 # $ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu"
62 - secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1KWKjZe9KDTZWppWRYVwAwQMzVeSOsbbU4tRoJ6Pp+3qhH1Z0eGYR9ZgKYAoTumDFgSAYRp4IscKS8jkoedOqM="
71 - BASE_CONFIG="--disable-docs --disable-tools"
73 - TEST_CMD="make check V=1"
74 # This is broadly a list of "mainline" softmmu targets which have support across the major distros
75 - MAIN_SOFTMMU_TARGETS="aarch64-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
76 - CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime"
78 - G_MESSAGES_DEBUG=error
82 # we want to do this ourselves
85 # Common first phase for all steps
86 # We no longer use nproc to calculate jobs:
87 # https://travis-ci.community/t/nproc-reports-32-cores-on-arm64/5851
89 - if command -v ccache ; then ccache --zero-stats ; fi
91 - echo "=== Using ${JOBS} simultaneous jobs ==="
93 # Configure step - may be overridden
95 - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
96 - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log meson-logs/meson-log.txt && exit 1; }
98 # Main build & test - rarely overridden - controlled by TEST_CMD
100 - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
102 if [ "$BUILD_RC" -eq 0 ] && [ -n "$TEST_BUILD_CMD" ]; then
103 ${TEST_BUILD_CMD} || BUILD_RC=$?
108 if [ "$BUILD_RC" -eq 0 ] ; then
115 - if command -v ccache ; then ccache --show-stats ; fi
121 - name: "[aarch64] GCC check-tcg"
151 - TEST_CMD="make check check-tcg V=1"
152 - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS} --cxx=/bin/false"
155 - name: "[ppc64] GCC check-tcg"
185 - TEST_CMD="make check check-tcg V=1"
186 - CONFIG="--disable-containers --target-list=ppc64-softmmu,ppc64le-linux-user"
188 - name: "[s390x] GCC check-tcg"
218 - TEST_CMD="make check check-tcg V=1"
219 - CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS},s390x-linux-user"
223 - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
225 if [ "$BUILD_RC" -eq 0 ] ; then
226 mv pc-bios/s390-ccw/*.img pc-bios/ ;
232 - name: "[s390x] GCC (other-softmmu)"
259 - CONFIG="--disable-containers --audio-drv-list=sdl --disable-user
260 --target-list-exclude=${MAIN_SOFTMMU_TARGETS}"
262 - name: "[s390x] GCC (user)"
272 - CONFIG="--disable-containers --disable-system"
274 - name: "[s390x] Clang (disable-tcg)"
303 - TEST_CMD="make check-unit"
304 - CONFIG="--disable-containers --disable-tcg --enable-kvm
305 --disable-tools --host-cc=clang --cxx=clang++"