Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b65d2c4

Browse files
committed
Merge pull request #5741 from tacaswell/tst_cache_on_travis
TST: enable caching on travis
2 parents 2c1a307 + 939fa6f commit b65d2c4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
sudo: false
22

3+
cache:
4+
directories:
5+
- $HOME/.ccache
6+
- $HOME/.cache/pip
7+
38
addons:
49
apt:
510
packages:
@@ -55,12 +60,15 @@ before_install:
5560
# Install into our own pristine virtualenv
5661
- virtualenv --python=python venv
5762
- source venv/bin/activate
63+
- export PATH=/usr/lib/ccache:$PATH
5864

5965
install:
66+
- ccache -s
6067
# Upgrade pip and setuptools. Mock has issues with the default version of
6168
# setuptools
6269
- |
6370
pip install --upgrade pip
71+
pip install --upgrade wheel
6472
pip install --upgrade setuptools
6573
# Install only from travis wheelhouse
6674
- if [ -z "$PRE" ]; then

0 commit comments

Comments
 (0)