-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(.travis): update CI config (#302)
- Loading branch information
1 parent
2bb71f5
commit 5406a4c
Showing
1 changed file
with
29 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,43 @@ | ||
sudo: false | ||
dist: trusty | ||
language: node_js | ||
branches: | ||
only: | ||
- master | ||
matrix: | ||
jobs: | ||
fast_finish: true | ||
allow_failures: | ||
- env: WEBPACK_VERSION=canary | ||
include: | ||
- os: linux | ||
node_js: "8" | ||
env: WEBPACK_VERSION="3.6.0" JOB_PART=lint | ||
- os: linux | ||
node_js: "6" | ||
env: WEBPACK_VERSION="3.6.0" JOB_PART=test | ||
- os: linux | ||
node_js: "4.7" | ||
env: WEBPACK_VERSION="3.6.0" JOB_PART=test | ||
- os: linux | ||
node_js: "8" | ||
env: WEBPACK_VERSION="3.6.0" JOB_PART=test | ||
- &test-latest | ||
stage: Webpack latest | ||
node_js: 6 | ||
env: WEBPACK_VERSION=latest JOB_PART=test | ||
script: npm run travis:$JOB_PART | ||
- <<: *test-latest | ||
node_js: 8 | ||
env: WEBPACK_VERSION=latest JOB_PART=test | ||
script: npm run travis:$JOB_PART | ||
- <<: *test-latest | ||
node_js: 8 | ||
env: WEBPACK_VERSION=latest JOB_PART=lint | ||
script: npm run travis:$JOB_PART | ||
- stage: Webpack canary | ||
before_script: npm i --no-save git://github.com/webpack/webpack.git#master | ||
script: npm run travis:$JOB_PART | ||
node_js: 8 | ||
env: WEBPACK_VERSION=canary JOB_PART=test | ||
before_install: | ||
- 'if [[ `npm -v` != 5* ]]; then npm i -g npm@^5.0.0; fi' | ||
- nvm --version | ||
- node --version | ||
- npm --version | ||
before_script: | ||
- 'if [ "$WEBPACK_VERSION" ]; then npm install webpack@^$WEBPACK_VERSION; fi' | ||
- |- | ||
if [ "$WEBPACK_VERSION" ]; then | ||
npm i --no-save webpack@$WEBPACK_VERSION | ||
fi | ||
script: | ||
- npm run travis:$JOB_PART | ||
- 'npm run travis:$JOB_PART' | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
- 'bash <(curl -s https://codecov.io/bash)' |