Enable ccache compression, increase cache size (#1099)
authorAndres Noetzli <andres.noetzli@gmail.com>
Thu, 14 Sep 2017 22:14:09 +0000 (15:14 -0700)
committerGitHub <noreply@github.com>
Thu, 14 Sep 2017 22:14:09 +0000 (15:14 -0700)
This commit enables compression for ccache, increases the cache size to 1GB and
resets the ccache statistics before each run.

.travis.yml

index e543141c01c9881d59093663a192a24b14097c71..359132fb192a12251ac48d2b65cf9c716ad24dbc 100644 (file)
@@ -18,6 +18,7 @@ env:
   #   via the "travis encrypt" command using the project repo's public key
   - secure: "fRfdzYwV10VeW5tVSvy5qpR8ZlkXepR7XWzCulzlHs9SRI2YY20BpzWRjyMBiGu2t7IeJKT7qdjq/CJOQEM8WS76ON7QJ1iymKaRDewDs3OhyPJ71fsFKEGgLky9blk7I9qZh23hnRVECj1oJAVry9IK04bc2zyIEjUYpjRkUAQ="
   - TEST_GROUPS=2
+  - CCACHE_COMPRESS=1
  matrix:
   - TRAVIS_CVC4=yes TRAVIS_CVC4_CHECK_PORTFOLIO=yes TRAVIS_WITH_LFSC=yes TRAVIS_CVC4_JAVA_API_TEST=yes TRAVIS_CVC4_CONFIG='production --enable-language-bindings=java,c --with-lfsc --with-portfolio --enable-gpl'
   - TRAVIS_CVC4=yes TRAVIS_CVC4_CHECK_PORTFOLIO=yes TRAVIS_WITH_LFSC=yes TRAVIS_CVC4_JAVA_API_TEST=yes TRAVIS_CVC4_CONFIG='debug --enable-language-bindings=java,c --with-lfsc --with-portfolio --enable-gpl --disable-debug-symbols' TEST_GROUP=0
@@ -59,6 +60,8 @@ before_script:
  - export JAVA_CPPFLAGS=-I$JAVA_HOME/include
  - ./autogen.sh
 script:
+ - ccache -M 1G
+ - ccache -z
  - ${CC} --version
  - ${CXX} --version
  - |