Skip to content

Commit 5406a4c

Browse files
ci(.travis): update CI config (#302)
1 parent 2bb71f5 commit 5406a4c

File tree

1 file changed

+29
-16
lines changed

1 file changed

+29
-16
lines changed

.travis.yml

+29-16
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,43 @@
11
sudo: false
2+
dist: trusty
23
language: node_js
34
branches:
45
only:
56
- master
6-
matrix:
7+
jobs:
78
fast_finish: true
9+
allow_failures:
10+
- env: WEBPACK_VERSION=canary
811
include:
9-
- os: linux
10-
node_js: "8"
11-
env: WEBPACK_VERSION="3.6.0" JOB_PART=lint
12-
- os: linux
13-
node_js: "6"
14-
env: WEBPACK_VERSION="3.6.0" JOB_PART=test
15-
- os: linux
16-
node_js: "4.7"
17-
env: WEBPACK_VERSION="3.6.0" JOB_PART=test
18-
- os: linux
19-
node_js: "8"
20-
env: WEBPACK_VERSION="3.6.0" JOB_PART=test
12+
- &test-latest
13+
stage: Webpack latest
14+
node_js: 6
15+
env: WEBPACK_VERSION=latest JOB_PART=test
16+
script: npm run travis:$JOB_PART
17+
- <<: *test-latest
18+
node_js: 8
19+
env: WEBPACK_VERSION=latest JOB_PART=test
20+
script: npm run travis:$JOB_PART
21+
- <<: *test-latest
22+
node_js: 8
23+
env: WEBPACK_VERSION=latest JOB_PART=lint
24+
script: npm run travis:$JOB_PART
25+
- stage: Webpack canary
26+
before_script: npm i --no-save git://github.com/webpack/webpack.git#master
27+
script: npm run travis:$JOB_PART
28+
node_js: 8
29+
env: WEBPACK_VERSION=canary JOB_PART=test
2130
before_install:
31+
- 'if [[ `npm -v` != 5* ]]; then npm i -g npm@^5.0.0; fi'
2232
- nvm --version
2333
- node --version
2434
- npm --version
2535
before_script:
26-
- 'if [ "$WEBPACK_VERSION" ]; then npm install webpack@^$WEBPACK_VERSION; fi'
36+
- |-
37+
if [ "$WEBPACK_VERSION" ]; then
38+
npm i --no-save webpack@$WEBPACK_VERSION
39+
fi
2740
script:
28-
- npm run travis:$JOB_PART
41+
- 'npm run travis:$JOB_PART'
2942
after_success:
30-
- bash <(curl -s https://codecov.io/bash)
43+
- 'bash <(curl -s https://codecov.io/bash)'

0 commit comments

Comments
 (0)