Skip to content

Commit c760c44

Browse files
ci(travis): add build stages (#1467)
1 parent b445b68 commit c760c44

File tree

4 files changed

+2744
-371
lines changed

4 files changed

+2744
-371
lines changed

.gitignore

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
.DS_Store
2+
13
npm-debug.log
4+
5+
.idea
6+
.nyc_output
7+
8+
client
9+
coverage
10+
ssl/*.pem
211
node_modules
3-
/client
4-
/coverage
5-
/ssl/*.pem
6-
.idea/
7-
.DS_Store

.travis.yml

Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,38 @@
1-
sudo: false
2-
branches:
3-
only:
4-
- master
1+
language: node_js
52

6-
language:
7-
node_js
3+
jobs:
4+
fast_finish: true
5+
include:
6+
- stage: Lint
7+
env: SCRIPT=lint
8+
node_js: 'stable'
9+
- &linux
10+
stage: Test (Linux)
11+
env: SCRIPT=test
12+
node_js: 'stable'
13+
- <<: *linux
14+
node_js: 'lts/*'
15+
- <<: *linux
16+
node_js: 6
17+
- &osx
18+
stage: Test (MacOS)
19+
os: 'osx'
20+
env: SCRIPT=test
21+
node_js: 'stable'
22+
- <<: *osx
23+
node_js: 'lts/*'
24+
- <<: *osx
25+
node_js: 6
826

9-
node_js:
10-
- '8'
11-
- '6'
27+
install:
28+
- npm i -g npm@latest
29+
- npm i
1230

13-
script:
14-
npm run ci
31+
script: npm run $SCRIPT
1532

1633
after_success:
17-
- npm i -g codecov
18-
- cat ./coverage/coverage.json | codecov
19-
- rm -rf ./coverage
34+
- npm i codecov
35+
- $(npm bin)/codecov
36+
37+
notifications:
38+
email: false

0 commit comments

Comments
 (0)