diff options
author | Christoph Junghans <christoph.junghans@gmail.com> | 2018-12-15 04:52:31 -0500 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2018-12-15 10:52:31 +0100 |
commit | 71a86bb84011d461758e1b2d847641db39f26433 (patch) | |
tree | a3c124d3176045aaea99bcd2b43bd148cb190c98 /.travis.yml | |
parent | caf94253e09ff9cc2c54342ed85e361d102f5414 (diff) | |
download | spack-71a86bb84011d461758e1b2d847641db39f26433.tar.gz spack-71a86bb84011d461758e1b2d847641db39f26433.tar.bz2 spack-71a86bb84011d461758e1b2d847641db39f26433.tar.xz spack-71a86bb84011d461758e1b2d847641db39f26433.zip |
.travis.yml: enable ccache (#6370)
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index c0378261f9..a1368837a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -130,6 +130,7 @@ sudo: false addons: apt: packages: + - ccache - gfortran - mercurial - graphviz @@ -144,6 +145,7 @@ addons: cache: pip: true + ccache: true directories: - ~/.mirror @@ -156,11 +158,13 @@ before_install: brew ls --versions python@2 > /dev/null || brew install python@2; brew ls --versions gcc > /dev/null || brew install gcc; brew ls --versions gnupg2 > /dev/null || brew install gnupg2; + brew ls --versions ccache > /dev/null || brew install ccache; pip2 install --upgrade pip; pip2 install virtualenv; virtualenv venv; source venv/bin/activate; fi + - ccache -M 2G && ccache -z # Install various dependencies install: @@ -183,8 +187,8 @@ before_script: - git fetch origin develop:develop # Set up external deps for build tests, b/c they take too long to compile - - if [[ "$TEST_SUITE" == "build" ]]; then cp - share/spack/qa/configuration/packages.yaml etc/spack/packages.yaml; + - if [[ "$TEST_SUITE" == "build" ]]; then + cp share/spack/qa/configuration/*.yaml etc/spack/; fi #============================================================================= @@ -218,6 +222,9 @@ script: --required --flags "${TEST_SUITE}${TRAVIS_OS_NAME}"; fi +after_success: + - ccache -s + #============================================================================= # Notifications #============================================================================= |