Skip to content

Commit 121d0fc

Browse files
committed
Use travis native cache
1 parent 2a7f606 commit 121d0fc

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.travis.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
language: python
2+
13
sudo: false
24

35
cache:
6+
pip: true
47
directories:
5-
- $HOME/.ccache
6-
- $HOME/.cache/pip
8+
- $HOME/.ccache # https://github.com/travis-ci/travis-ci/issues/5853
79
- $HOME/.cache/matplotlib
8-
- $HOME/Library/Caches/pip
910

1011
addons:
1112
apt:
@@ -46,8 +47,6 @@ env:
4647
- NOSE_ARGS="--processes=$NPROC --process-timeout=300"
4748
- PYTHON_ARGS=
4849

49-
language: python
50-
5150
matrix:
5251
include:
5352
- python: 2.7
@@ -64,8 +63,17 @@ matrix:
6463
env: PRE=--pre
6564
- os: osx
6665
osx_image: xcode7.3
67-
language: generic
66+
language: generic # https://github.com/travis-ci/travis-ci/issues/2312
6867
env: MOCK=mock NOSE_ARGS=
68+
cache:
69+
# As for now travis caches only "$HOME/.cache/pip"
70+
# https://docs.travis-ci.com/user/caching/#pip-cache
71+
pip: false
72+
directories:
73+
- $HOME/Library/Caches/pip
74+
# `cache` does not support `env`-like `global` so copy-paste from top
75+
- $HOME/.ccache # https://github.com/travis-ci/travis-ci/issues/5853
76+
- $HOME/.cache/matplotlib
6977
allow_failures:
7078
- python: "nightly"
7179

0 commit comments

Comments
 (0)