-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
43 lines (37 loc) · 1.25 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
43
language: node_js
node_js:
- stable
cache:
directories:
- $HOME/.npm
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:
- if [ "$TASK" = "codespell" ]; then npm install -g grunt-cli; fi
- if [ "$TASK" = "npm-test" ]; then npm install; fi
- if [ "$TASK" = "codespell" ]; then pip install urllib3[secure]; fi
- if [ "$TASK" = "codespell" ]; then sudo pip install --upgrade git+https://github.com/codespell-project/codespell.git; fi
matrix:
fast_finish: true
include:
- env: TASK="npm-test"
- 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: required
env: TASK='codespell'
addons:
apt:
packages:
- moreutils
- env: TASK="jsonschemalinter"
script: "bash -ex .travis-ci.sh"