Skip to content

Commit 4d31dda

Browse files
author
Peter Bengtsson
committed
Merge pull request #44 from peterbe/simplify-travis-caching
simplify travis caching
2 parents 6492967 + f7f47c7 commit 4d31dda

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

.travis.yml

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,15 @@ sudo: no
22

33
language: python
44

5-
cache:
6-
# Apparently if you override the install command that silently disables the
7-
# cache: pip support. This is less than ideal and I've opened up
8-
# travis-ci/travis-ci#3239 to hopefully get that addressed. For now I'll
9-
# manually add the pip cache directory to the build cache.
10-
directories:
11-
- ~/.cache/pip
12-
13-
env:
14-
global:
15-
# These two environment variables could be set by Travis itself, or Travis
16-
# could configure itself in /etc/, ~/, or inside of the virtual
17-
# environments. In any case if these two values get configured then end
18-
# users only need to enable the pip cache and manually run pip wheel before
19-
# running pip install.
20-
- PIP_WHEEL_DIR=$HOME/.cache/pip/wheels
21-
- PIP_FIND_LINKS=file://$HOME/.cache/pip/wheels
5+
cache: pip
226

237
python:
248
- '2.7'
25-
- '3.3'
269
- '3.4'
10+
- '3.5'
2711

2812
install:
29-
# Before installation, we'll run ``pip wheel``, this will build wheels for
30-
# anything that doesn't already have one on PyPI.
31-
- pip wheel -r requirements.txt
32-
# Actually install our dependencies now, this will pull from the directory
33-
# that the first command placed the Wheels into.
3413
- pip install -r requirements.txt
35-
# we also need to install the test dependencies
3614
- python setup.py install
3715

3816
script:

0 commit comments

Comments
 (0)