]> granicus.if.org Git - libjpeg-turbo/commitdiff
Travis: Cache Homebrew downloads
authorDRC <information@libjpeg-turbo.org>
Thu, 18 Jul 2019 19:25:25 +0000 (14:25 -0500)
committerDRC <information@libjpeg-turbo.org>
Thu, 18 Jul 2019 20:17:33 +0000 (15:17 -0500)
... to speed up the Mac CI builds.

.travis.yml

index 04eff2c0895e55d3f8bf68a3fd0abf6bc265d6ae..4bbe022100a4c87984893cd4e70b04c45506c674 100644 (file)
@@ -57,6 +57,13 @@ addons:
     brewfile: true
     update: true
 
+cache:
+  directories:
+    - $HOME/Library/Caches/Homebrew
+
+before_cache:
+  - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew cleanup; fi
+
 before_install:
   - if [ "$TRAVIS_OS_NAME" = "osx" ]; then
       git clone --depth=1 https://github.com/libjpeg-turbo/gas-preprocessor.git ~/src/gas-preprocessor &&