.travis.yml: enable ccache (#6370)
This commit is contained in:
parent
caf94253e0
commit
71a86bb840
2 changed files with 11 additions and 2 deletions
11
.travis.yml
11
.travis.yml
|
@ -130,6 +130,7 @@ sudo: false
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
|
- ccache
|
||||||
- gfortran
|
- gfortran
|
||||||
- mercurial
|
- mercurial
|
||||||
- graphviz
|
- graphviz
|
||||||
|
@ -144,6 +145,7 @@ addons:
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
pip: true
|
pip: true
|
||||||
|
ccache: true
|
||||||
directories:
|
directories:
|
||||||
- ~/.mirror
|
- ~/.mirror
|
||||||
|
|
||||||
|
@ -156,11 +158,13 @@ before_install:
|
||||||
brew ls --versions python@2 > /dev/null || brew install python@2;
|
brew ls --versions python@2 > /dev/null || brew install python@2;
|
||||||
brew ls --versions gcc > /dev/null || brew install gcc;
|
brew ls --versions gcc > /dev/null || brew install gcc;
|
||||||
brew ls --versions gnupg2 > /dev/null || brew install gnupg2;
|
brew ls --versions gnupg2 > /dev/null || brew install gnupg2;
|
||||||
|
brew ls --versions ccache > /dev/null || brew install ccache;
|
||||||
pip2 install --upgrade pip;
|
pip2 install --upgrade pip;
|
||||||
pip2 install virtualenv;
|
pip2 install virtualenv;
|
||||||
virtualenv venv;
|
virtualenv venv;
|
||||||
source venv/bin/activate;
|
source venv/bin/activate;
|
||||||
fi
|
fi
|
||||||
|
- ccache -M 2G && ccache -z
|
||||||
|
|
||||||
# Install various dependencies
|
# Install various dependencies
|
||||||
install:
|
install:
|
||||||
|
@ -183,8 +187,8 @@ before_script:
|
||||||
- git fetch origin develop:develop
|
- git fetch origin develop:develop
|
||||||
|
|
||||||
# Set up external deps for build tests, b/c they take too long to compile
|
# Set up external deps for build tests, b/c they take too long to compile
|
||||||
- if [[ "$TEST_SUITE" == "build" ]]; then cp
|
- if [[ "$TEST_SUITE" == "build" ]]; then
|
||||||
share/spack/qa/configuration/packages.yaml etc/spack/packages.yaml;
|
cp share/spack/qa/configuration/*.yaml etc/spack/;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
|
@ -218,6 +222,9 @@ script:
|
||||||
--required --flags "${TEST_SUITE}${TRAVIS_OS_NAME}";
|
--required --flags "${TEST_SUITE}${TRAVIS_OS_NAME}";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- ccache -s
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
# Notifications
|
# Notifications
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
|
|
2
share/spack/qa/configuration/config.yaml
Normal file
2
share/spack/qa/configuration/config.yaml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
config:
|
||||||
|
ccache: true
|
Loading…
Reference in a new issue