-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy path.travis.yml
More file actions
37 lines (37 loc) · 789 Bytes
/
.travis.yml
File metadata and controls
37 lines (37 loc) · 789 Bytes
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
sudo: false
language: node_js
cache:
directories:
- node_modules
branches:
only:
- master
notifications:
email: false
node_js:
- 'lts/*'
- '12'
- '11'
- '10'
- '9'
- '8'
- '7'
- '6'
- '5'
- '4'
before_install:
# detect if the current build's node version is < 4
# if yes, install latest npm version 2.x
# if not, install latest npm version 3.x
- if [[ `node -v | sed 's/[^0-9\.]//g'` < 4 ]]; then npm i -g npm@^2.0.0; else npm i -g npm@^3.0.0; fi
before_script:
- npm prune
script:
- npm run test
- npm run check-coverage
after_success:
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
- python travis_after_all.py
- 'export $(cat .to_export_back) &> /dev/null'
- npm run report-coverage
- npm run semantic-release