-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
42 lines (36 loc) · 1.53 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Based on https://github.com/zeromq/zeromq-buildbot/blob/master/.travis.yml
language: python
matrix:
fast_finish: true
include:
- env: TASK='flake8'
- python: "2.7"
env: TASK='pychecker'
- python: "2.7"
env: TASK='checkconfig'
# - python: "3.2" # buildbot does not currently support Python 3
# env: TASK='checkconfig'
# - python: "3.3" # buildbot does not currently support Python 3
# env: TASK='checkconfig'
# - python: "pypy" # issues with travis halting during buildbot setup
# env: TASK='checkconfig'
cache:
apt: true
directories:
- $HOME/.cache/pip # pip cache
script:
- "bash -ex .travis-ci.sh"
install:
# We need a minimum of 0.8.12, so install via pip
- sudo pip install buildbot==0.8.12
- if [ "$TASK" = "flake8" ]; then sudo pip install flake8; fi
# 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
- 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
# 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
- 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
notifications:
irc:
channels:
- "chat.freenode.net#openlighting"
on_success: change
on_failure: change