Skip to content

Commit a49bf8b

Browse files
ci(travis): add build stages
1 parent a410ea2 commit a49bf8b

File tree

4 files changed

+31
-371
lines changed

4 files changed

+31
-371
lines changed

.travis.yml

+20-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
1-
sudo: false
21
language: node_js
32

4-
node_js:
5-
- '9'
6-
- '8'
7-
- '6'
3+
jobs:
4+
fast_finish: true
5+
include:
6+
- stage: Lint
7+
env: SCRIPT=lint
8+
node_js: 'stable'
9+
- &test
10+
stage: Test
11+
env: SCRIPT=test
12+
node_js: 'stable'
13+
- <<: *test
14+
node_js: 'lts/*'
15+
- <<: *test
16+
node_js: 6
817

9-
script:
10-
npm run ci
18+
script: npm run $SCRIPT
1119

1220
after_success:
13-
npm run cover
21+
- npm i codecov
22+
- $(npm bin)/codecov
23+
24+
notifications:
25+
email: false

appveyor.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
1+
build: 'off'
12

23
init:
34
- git config --global core.autocrlf input
5+
46
environment:
57
matrix:
6-
- nodejs_version: '9'
8+
- nodejs_version: '10'
79
webpack_version: latest
810
- nodejs_version: '8'
911
webpack_version: latest
1012
- nodejs_version: '6'
1113
webpack_version: latest
12-
build: 'off'
14+
1315
matrix:
1416
fast_finish: true
17+
1518
install:
1619
- ps: Install-Product node $env:nodejs_version x64
1720
- npm i -g npm@latest
1821
- npm install
22+
1923
before_test:
20-
- cmd: npm install webpack@%webpack_version%
24+
- cmd: npm i webpack@%webpack_version%
25+
2126
test_script:
22-
- node --version
23-
- npm --version
24-
- cmd: npm run ci
27+
- cmd: npm t

0 commit comments

Comments
 (0)