]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
travis: Install and use ccache on macOS
authorAndrea Bolognani <abologna@redhat.com>
Wed, 30 May 2018 12:27:10 +0000 (14:27 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 5 Jun 2018 07:59:35 +0000 (09:59 +0200)
As documented in [1], ccache needs to be installed and
configured explicitly on macOS.

[1] https://docs.travis-ci.com/user/caching/#ccache-cache

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
.travis.yml

index ddc902888e867531bd4641bd85e0eea3e5b091db..c71411dcaef3faafe08a121865f1fde316ae148b 100644 (file)
@@ -21,12 +21,12 @@ matrix:
     - compiler: clang
       os: osx
       env:
-        - PATH="/usr/local/opt/gettext/bin:/usr/local/opt/rpcgen/bin:$PATH"
+        - PATH="/usr/local/opt/gettext/bin:/usr/local/opt/ccache/libexec:/usr/local/opt/rpcgen/bin:$PATH"
       before_install:
         - brew uninstall python mercurial postgis sfcgal cgal gdal
         - brew update
         - brew upgrade
-        - brew install python rpcgen yajl
+        - brew install python ccache rpcgen yajl
       script:
         # We can't run make distcheck/syntax-check because they
         # fail on macOS, but doing 'install' and 'dist' gives us