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 (e.g. "jammy" for Linux)
11 # - Names and values of visible environment variables set in .travis.yml or Settings panel
17 # The channel name "irc.oftc.net#qemu" is encrypted against qemu/qemu
18 # to prevent IRC notifications from forks. This was created using:
19 # $ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu"
23 - secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1KWKjZe9KDTZWppWRYVwAwQMzVeSOsbbU4tRoJ6Pp+3qhH1Z0eGYR9ZgKYAoTumDFgSAYRp4IscKS8jkoedOqM="
32 - BASE_CONFIG="--disable-docs --disable-tools"
34 - TEST_CMD="make check V=1"
35 # This is broadly a list of "mainline" system targets which have support across the major distros
36 - MAIN_SYSTEM_TARGETS="aarch64-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
37 - CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime"
39 - G_MESSAGES_DEBUG=error
43 # we want to do this ourselves
46 # Common first phase for all steps
47 # We no longer use nproc to calculate jobs:
48 # https://travis-ci.community/t/nproc-reports-32-cores-on-arm64/5851
50 - if command -v ccache ; then ccache --zero-stats ; fi
52 - echo "=== Using ${JOBS} simultaneous jobs ==="
54 # Configure step - may be overridden
56 - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
57 - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log meson-logs/meson-log.txt && exit 1; }
59 # Main build & test - rarely overridden - controlled by TEST_CMD
61 - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
63 if [ "$BUILD_RC" -eq 0 ] && [ -n "$TEST_BUILD_CMD" ]; then
64 ${TEST_BUILD_CMD} || BUILD_RC=$?
69 if [ "$BUILD_RC" -eq 0 ] ; then
76 - if command -v ccache ; then ccache --show-stats ; fi
82 - name: "[aarch64] GCC check-tcg"
113 - TEST_CMD="make check check-tcg V=1"
114 - CONFIG="--disable-containers --enable-fdt=system
115 --target-list=${MAIN_SYSTEM_TARGETS} --cxx=/bin/false"
117 - name: "[ppc64] Clang check-tcg"
149 - TEST_CMD="make check check-tcg V=1"
150 - CONFIG="--disable-containers --enable-fdt=system
151 --target-list=ppc64-softmmu,ppc64le-linux-user"
153 - name: "[s390x] GCC check-tcg"
184 - TEST_CMD="make check check-tcg V=1"
185 - CONFIG="--disable-containers
186 --target-list=hppa-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
188 - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
190 if [ "$BUILD_RC" -eq 0 ] ; then
191 mv pc-bios/s390-ccw/*.img qemu-bundle/usr/local/share/qemu ;
197 - name: "[s390x] Clang (other-system)"
225 - CONFIG="--disable-containers --audio-drv-list=sdl --disable-user
226 --target-list=arm-softmmu,avr-softmmu,microblaze-softmmu,sh4eb-softmmu,sparc64-softmmu,xtensaeb-softmmu"
228 - name: "[s390x] GCC (user)"
240 - TEST_CMD="make check check-tcg V=1"
241 - CONFIG="--disable-containers --disable-system"
243 - name: "[s390x] Clang (disable-tcg)"
273 - TEST_CMD="make check-unit"
274 - CONFIG="--disable-containers --disable-tcg --enable-kvm --disable-tools
275 --enable-fdt=system --host-cc=clang --cxx=clang++"