Skip to content

Commit 007881d

Browse files
authored
Fix the travis build
1 parent 406cff2 commit 007881d

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.travis.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ matrix:
66
fast_finish: true
77
include:
88
- env: TASK='flake8'
9-
- env: TASK='pychecker'
10-
- python: "2.6"
11-
env: TASK='checkconfig'
9+
- python: "2.7"
10+
env: TASK='pychecker'
1211
- python: "2.7"
1312
env: TASK='checkconfig'
1413
# - python: "3.2" # buildbot does not currently support Python 3
@@ -18,17 +17,22 @@ matrix:
1817
# - python: "pypy" # issues with travis halting during buildbot setup
1918
# env: TASK='checkconfig'
2019

20+
cache:
21+
apt: true
22+
directories:
23+
- $HOME/.cache/pip # pip cache
24+
2125
script:
2226
- "bash -ex .travis-ci.sh"
2327

24-
before_install:
25-
- sudo apt-get update -qq
26-
2728
install:
2829
# We need a minimum of 0.8.12, so install via pip
2930
- sudo pip install buildbot==0.8.12
3031
- if [ "$TASK" = "flake8" ]; then sudo pip install flake8; fi
31-
- if [ "$TASK" = "pychecker" ]; then sudo pip install http://sourceforge.net/projects/pychecker/files/pychecker/0.8.19/pychecker-0.8.19.tar.gz/download; fi
32+
# If this causes SSL errors, then Sourceforge is probably in disaster recovery mode and needing Javascript. Could switch to a specific mirror, e.g. kent.dl.sourceforge.net
33+
- if [ "$TASK" = "pychecker" ]; then sudo pip install --verbose http://sourceforge.net/projects/pychecker/files/pychecker/0.8.19/pychecker-0.8.19.tar.gz/download; fi
34+
# This is a very bodgy workaround to the fact that the pip install of the archive doesn't seem to work properly now on Travis
35+
- if [ "$TASK" = "pychecker" ]; then sudo mkdir -p /pychecker/; sudo ln -s /usr/local/lib/python2.7/dist-packages/pychecker/checker.py /pychecker/checker.py; fi
3236

3337
notifications:
3438
irc:

0 commit comments

Comments
 (0)