Skip to content

Use travis native cache #6822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 3, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use travis native cache
  • Loading branch information
Kojoley committed Jul 24, 2016
commit 121d0fcd4798c393a030921c176bed7a1f04a16a
20 changes: 14 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
language: python

sudo: false

cache:
pip: true
directories:
- $HOME/.ccache
- $HOME/.cache/pip
- $HOME/.ccache # https://github.com/travis-ci/travis-ci/issues/5853
- $HOME/.cache/matplotlib
- $HOME/Library/Caches/pip

addons:
apt:
Expand Down Expand Up @@ -46,8 +47,6 @@ env:
- NOSE_ARGS="--processes=$NPROC --process-timeout=300"
- PYTHON_ARGS=

language: python

matrix:
include:
- python: 2.7
Expand All @@ -64,8 +63,17 @@ matrix:
env: PRE=--pre
- os: osx
osx_image: xcode7.3
language: generic
language: generic # https://github.com/travis-ci/travis-ci/issues/2312
env: MOCK=mock NOSE_ARGS=
cache:
# As for now travis caches only "$HOME/.cache/pip"
# https://docs.travis-ci.com/user/caching/#pip-cache
pip: false
directories:
- $HOME/Library/Caches/pip
# `cache` does not support `env`-like `global` so copy-paste from top
- $HOME/.ccache # https://github.com/travis-ci/travis-ci/issues/5853
- $HOME/.cache/matplotlib
allow_failures:
- python: "nightly"

Expand Down