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"
112 - TEST_CMD="make check check-tcg V=1"
113 - CONFIG="--disable-containers --enable-fdt=system
114 --target-list=${MAIN_SYSTEM_TARGETS} --cxx=/bin/false"
116 - name: "[ppc64] Clang check-tcg"
147 - TEST_CMD="make check check-tcg V=1"
148 - CONFIG="--disable-containers --enable-fdt=system
149 --target-list=ppc64-softmmu,ppc64le-linux-user"
151 - name: "[s390x] GCC check-tcg"
181 - TEST_CMD="make check check-tcg V=1"
182 - CONFIG="--disable-containers
183 --target-list=hppa-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
185 - BUILD_RC=0 && make -j${JOBS} || BUILD_RC=$?
187 if [ "$BUILD_RC" -eq 0 ] ; then
188 mv pc-bios/s390-ccw/*.img qemu-bundle/usr/local/share/qemu ;
194 - name: "[s390x] Clang (other-system)"
221 - CONFIG="--disable-containers --audio-drv-list=sdl --disable-user
222 --target-list=arm-softmmu,avr-softmmu,microblaze-softmmu,sh4eb-softmmu,sparc64-softmmu,xtensaeb-softmmu"
224 - name: "[s390x] GCC (user)"
235 - TEST_CMD="make check check-tcg V=1"
236 - CONFIG="--disable-containers --disable-system"
238 - name: "[s390x] Clang (disable-tcg)"
267 - TEST_CMD="make check-unit"
268 - CONFIG="--disable-containers --disable-tcg --enable-kvm --disable-tools
269 --enable-fdt=system --host-cc=clang --cxx=clang++"