Skip to content

Commit f078b24

Browse files
authored
Merge pull request #6822 from Kojoley/travis-native-cache
CI: Use travis native cache
2 parents f2fabc0 + 121d0fc commit f078b24

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:
@@ -47,8 +48,6 @@ env:
4748
- PYTHON_ARGS=
4849
- DELETE_FONT_CACHE=
4950

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

0 commit comments

Comments
 (0)