summary refs log tree commit diff stats
path: root/tests/acceptance/linux_initrd.py
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2019-09-03 15:26:44 +0200
committerAlex Bennée <alex.bennee@linaro.org>2019-09-10 14:14:32 +0100
commitbcfbf0d56e9fc9c716a88bc8862004b1b90d7a6e (patch)
treee3482be71cc5bc5c772db14ee08ec1e0f24b82e4 /tests/acceptance/linux_initrd.py
parentc1073e44b46490133e16420e1784dec7bcd4e030 (diff)
downloadfocaccia-qemu-bcfbf0d56e9fc9c716a88bc8862004b1b90d7a6e.tar.gz
focaccia-qemu-bcfbf0d56e9fc9c716a88bc8862004b1b90d7a6e.zip
.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>
Diffstat (limited to 'tests/acceptance/linux_initrd.py')
0 files changed, 0 insertions, 0 deletions