-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.travis.yml
More file actions
130 lines (122 loc) · 3.44 KB
/
.travis.yml
File metadata and controls
130 lines (122 loc) · 3.44 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
language: python
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log # erase log
cache:
apt: true
npm: true
pip: true
directories:
- $HOME/.npm
- $HOME/.cache/pip
before_install:
#Switch node to the latest LTS version
- if [ "$TASK" = "karma" -o "$TASK" = "lint" -o "$TASK" = "closure-compiler" ]; then nvm install lts/* && nvm use lts/*; fi
install:
- if [ "$TASK" = "nosetests" -o "$TASK" = "flake8" -o "$TASK" = "flake8-wip" ]; then pip install json-spec; fi
- if [ "$TASK" = "karma" -o "$TASK" = "lint" -o "$TASK" = "closure-compiler" ]; then npm --verbose install -g grunt-cli; fi
- if [ "$TASK" = "karma" -o "$TASK" = "lint" -o "$TASK" = "closure-compiler" ]; then grunt --version --verbose; fi
- if [ "$TASK" = "karma" -o "$TASK" = "lint" -o "$TASK" = "closure-compiler" ]; then npm --verbose install; fi
- if [ "$TASK" = "flake8" -o "$TASK" = "flake8-wip" ]; 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/codespell-project/codespell.git; fi
after_failure:
- if [ -f /home/travis/.npm/_logs/*-debug.log ]; then cat /home/travis/.npm/_logs/*-debug.log; fi
matrix:
fast_finish: true
include:
- os: linux
arch: arm64
python: "2.7"
env: TASK="nosetests"
- os: linux
dist: focal
arch: arm64
env:
- TASK="karma"
# Make Firefox headless
- MOZ_HEADLESS=1
# Mozilla doesn't currently support nightly arm64 builds, so install via apt instead
#addons:
# firefox: latest
addons:
apt:
packages:
- firefox
services:
- xvfb
- os: linux
dist: focal
arch: arm64
env: TASK="lint"
- os: linux
dist: focal
arch: arm64
env: TASK="closure-compiler"
- os: linux
arch: arm64
env: TASK="data-check"
addons:
apt:
packages:
- libhtml-parser-perl
- os: linux
dist: focal
arch: arm64
env: TASK='spellintian'
addons:
apt:
packages:
- lintian
- moreutils
- os: linux
dist: focal
arch: arm64
env: TASK='codespell'
addons:
apt:
packages:
- moreutils
- os: linux
dist: trusty
arch: arm64
python: "2.7"
env: TASK='flake8'
- os: linux
dist: trusty
arch: arm64
python: "2.7"
env: TASK='flake8-wip'
- os: linux
dist: trusty
arch: arm64
python: "2.7"
env: TASK='pychecker'
- os: linux
dist: trusty
arch: arm64
python: "2.7"
env: TASK='pychecker-wip'
allow_failures:
- os: linux
dist: trusty
arch: arm64
python: "2.7"
env: TASK='flake8-wip'
- os: linux
dist: trusty
arch: arm64
python: "2.7"
env: TASK='pychecker'
- os: linux
dist: trusty
arch: arm64
python: "2.7"
env: TASK='pychecker-wip'
script: "bash -ex .travis-ci.sh"
notifications:
irc:
channels:
- "chat.freenode.net#openlighting"
on_success: change
on_failure: change