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
19 # The channel name "irc.oftc.net#qemu" is encrypted against qemu/qemu
20 # to prevent IRC notifications from forks. This was created using:
21 # $ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu"
25 - secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1KWKjZe9KDTZWppWRYVwAwQMzVeSOsbbU4tRoJ6Pp+3qhH1Z0eGYR9ZgKYAoTumDFgSAYRp4IscKS8jkoedOqM="
34 - BASE_CONFIG="--disable-docs --disable-tools"
36 - TEST_CMD="make check V=1"
37 # This is broadly a list of "mainline" softmmu targets which have support across the major distros
38 - MAIN_SOFTMMU_TARGETS="aarch64-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
39 - CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime"
41 - G_MESSAGES_DEBUG=error
45 # we want to do this ourselves
48 # Common first phase for all steps
49 # We no longer use nproc to calculate jobs:
50 # https://travis-ci.community/t/nproc-reports-32-cores-on-arm64/5851
52 - if command -v ccache ; then ccache --zero-stats ; fi
54 - echo "=== Using ${JOBS} simultaneous jobs ==="
56 # Configure step - may be overridden
58 - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
59 - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log meson-logs/meson-log.txt && exit 1; }
61 # Main build & test - rarely overridden - controlled by TEST_CMD
63 - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
65 if [ "$BUILD_RC" -eq 0 ] && [ -n "$TEST_BUILD_CMD" ]; then
66 ${TEST_BUILD_CMD} || BUILD_RC=$?
71 if [ "$BUILD_RC" -eq 0 ] ; then
78 - if command -v ccache ; then ccache --show-stats ; fi
84 - name: "[aarch64] GCC check-tcg"
115 - TEST_CMD="make check check-tcg V=1"
116 - CONFIG="--disable-containers --enable-fdt=system
117 --target-list=${MAIN_SOFTMMU_TARGETS} --cxx=/bin/false"
120 - name: "[ppc64] GCC check-tcg"
151 - TEST_CMD="make check check-tcg V=1"
152 - CONFIG="--disable-containers --enable-fdt=system
153 --target-list=ppc64-softmmu,ppc64le-linux-user"
155 - name: "[s390x] GCC check-tcg"
186 - TEST_CMD="make check check-tcg V=1"
187 - CONFIG="--disable-containers --enable-fdt=system
188 --target-list=${MAIN_SOFTMMU_TARGETS},s390x-linux-user"
191 - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
193 if [ "$BUILD_RC" -eq 0 ] ; then
194 mv pc-bios/s390-ccw/*.img qemu-bundle/usr/local/share/qemu ;
200 - name: "[s390x] GCC (other-softmmu)"
228 - CONFIG="--disable-containers --enable-fdt=system --audio-drv-list=sdl
229 --disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}"
231 - name: "[s390x] GCC (user)"
243 - CONFIG="--disable-containers --disable-system"
245 - name: "[s390x] Clang (disable-tcg)"
276 - TEST_CMD="make check-unit"
277 - CONFIG="--disable-containers --disable-tcg --enable-kvm --disable-tools
278 --enable-fdt=system --host-cc=clang --cxx=clang++"