]> git.proxmox.com Git - mirror_qemu.git/commit
.travis.yml: Improve ccache use
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 3 Sep 2019 13:26:44 +0000 (15:26 +0200)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 10 Sep 2019 13:14:32 +0000 (14:14 +0100)
commitbcfbf0d56e9fc9c716a88bc8862004b1b90d7a6e
treee3482be71cc5bc5c772db14ee08ec1e0f24b82e4
parentc1073e44b46490133e16420e1784dec7bcd4e030
.travis.yml: Improve ccache use

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 <pbonzini@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
.travis.yml