From: Philippe Mathieu-Daudé Date: Tue, 3 Sep 2019 13:26:45 +0000 (+0200) Subject: .travis.yml: Enable ccache on OSX X-Git-Tag: v4.2.0-rc0~115^2~7 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0d8773c2880bb068e58b2551d6d031938068580a;p=qemu-xen-unstable.git .travis.yml: Enable ccache on OSX By default, ccache is not installed on macOS environments. See https://docs.travis-ci.com/user/caching/#ccache-on-macos Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée --- diff --git a/.travis.yml b/.travis.yml index 7d6c63a280..3d1c7f0d7e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,6 +45,7 @@ addons: - gcovr homebrew: packages: + - ccache - glib - pixman - gnu-sed @@ -80,6 +81,7 @@ git: before_script: + - if [ "$TRAVIS_OS_NAME" == "osx" ] ; then export PATH="/usr/local/opt/ccache/libexec:$PATH" ; fi - command -v ccache && ccache --zero-stats - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; }