[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 38/45] .travis.yml: Improve ccache use
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PULL 38/45] .travis.yml: Improve ccache use |
Date: |
Tue, 10 Sep 2019 09:43:42 +0100 |
From: Philippe Mathieu-Daudé <address@hidden>
Per https://ccache.dev/manual/latest.html:
By default, ccache tries to give as few false cache hits as
possible. However, in certain situations it’s possible that
you know things that ccache can’t take for granted.
[The CCACHE_SLOPINESS environment variable] makes it possible
to tell ccache to relax some checks in order to increase the
hit rate.
We can relax the ctime/mtime header checks:
- include_file_ctime
By default, ccache also will not cache a file if it
includes a header whose ctime is too new. This option
disables that check.
- include_file_mtime
By default, ccache will not cache a file if it includes
a header whose mtime is too new. This option disables
that check.
We also add a call to clear the cache statistics before running
the build, and display them when the build finishes.
See https://docs.travis-ci.com/user/caching/#ccache-cache
Suggested-by: Paolo Bonzini <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Signed-off-by: Alex Bennée <address@hidden>
diff --git a/.travis.yml b/.travis.yml
index 097a844d68b..7d6c63a2803 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -70,6 +70,9 @@ env:
- TEST_CMD="make check -j3 V=1"
# This is broadly a list of "mainline" softmmu targets which have support
across the major distros
-
MAIN_SOFTMMU_TARGETS="aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
+ - CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime"
+ - CCACHE_MAXSIZE=1G
+
git:
# we want to do this ourselves
@@ -77,10 +80,13 @@ git:
before_script:
+ - command -v ccache && ccache --zero-stats
- mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
- ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit
1; }
script:
- make -j3 && travis_retry ${TEST_CMD}
+after_script:
+ - command -v ccache && ccache --show-stats
matrix:
--
2.20.1
- [Qemu-devel] [PULL 15/45] tests/docker: move our powerpc cross compile to Buster, (continued)
- [Qemu-devel] [PULL 15/45] tests/docker: move our powerpc cross compile to Buster, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 14/45] tests/docker: move our arm64 cross compile to Buster, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 09/45] tests/tcg: move configuration to a sub-shell script, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 21/45] tests/docker: move our mips64 cross compile to Buster, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 32/45] tests/docker: --disable-libssh on ubuntu1804 builds, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 41/45] .travis.yml: Cache Linux/GCC 'debug profile' jobs together, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 22/45] tests/docker: move our riscv64 cross compile to Buster, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 19/45] tests/docker: move our sparc64 cross compile to Buster, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 20/45] tests/docker: move our sh4 cross compile to Buster, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 42/45] .travis.yml: Cache Linux/GCC 'non-debug profile' jobs together, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 38/45] .travis.yml: Improve ccache use,
Alex Bennée <=
- [Qemu-devel] [PULL 44/45] Fedora images: use URLs from stable "archives.fedoraproject.org", Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 26/45] tests/docker: add debian-xtensa-cross to DEBIAN_PARTIAL_IMAGES, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 30/45] tests/docker: use --arch-only for installing deps, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 27/45] tests/docker: add debian9-mxe to DEBIAN_PARTIAL_IMAGES, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 37/45] .travis.yml: Cache Avocado cache, Alex Bennée, 2019/09/10
- [Qemu-devel] [PULL 34/45] .travis.yml: Enable multiple caching features, Alex Bennée, 2019/09/10