-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.travis.yml
More file actions
83 lines (75 loc) · 2.28 KB
/
.travis.yml
File metadata and controls
83 lines (75 loc) · 2.28 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
language: python
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log # erase log
cache:
directories:
- $HOME/.npm
- $HOME/.cache/pip
sudo: false
before_install:
- if [[ "$TASK" == "spellintian" ]]; then sudo add-apt-repository ppa:waja/trusty-backports -y; sudo apt-get update -qq; sudo apt-get install lintian -y; fi # Install a late enough lintian
install:
- pip install json-spec
- npm install -g grunt-cli
- npm install
- if [ "$TASK" = "flake8" ]; then 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" -o "$TASK" = "pychecker-wip" ]; then pip install http://sourceforge.net/projects/pychecker/files/pychecker/0.8.19/pychecker-0.8.19.tar.gz/download; fi
- if [ "$TASK" = "codespell" ]; then pip install git+https://github.com/lucasdemarchi/codespell.git; fi
matrix:
fast_finish: true
include:
- python: "2.7"
env: TASK="nosetests"
- env: TASK="karma"
- env: TASK="js-lint"
- env: TASK="closure-compiler"
- env: TASK="data-check"
addons:
apt:
packages:
- libhtml-parser-perl
- os: linux
dist: trusty
# Short duration job, would use the container/without sudo image as it boots faster, but we need a backported lintian, so don't
sudo: required
env: TASK='spellintian'
addons:
apt:
packages:
- moreutils
- os: linux
dist: trusty
# Short duration job, use the container/without sudo image as it boots faster
sudo: false
env: TASK='codespell'
addons:
apt:
packages:
- moreutils
- os: linux
dist: trusty
env: TASK='flake8'
- os: linux
dist: trusty
env: TASK='pychecker'
- os: linux
dist: trusty
env: TASK='pychecker-wip'
allow_failures:
- os: linux
dist: trusty
env: TASK='flake8'
- os: linux
dist: trusty
env: TASK='pychecker'
- os: linux
dist: trusty
env: TASK='pychecker-wip'
script: "bash -ex .travis-ci.sh"
notifications:
irc:
channels:
- "chat.freenode.net#openlighting"
on_success: change
on_failure: change