Skip to content

Commit

Permalink
ci(Travis): manual travis matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwiens committed Jan 18, 2017
1 parent f6e97c3 commit 3224862
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
sudo: false
language: node_js
os:
- linux
# Test against Webpack supported NodeJS Versions ( >= 4.7 && !5.x, 6.x, 7.x)
node_js:
- node
- "6"
branches:
only:
- v2
env:
- export WEBPACK_VERSION="2.2.0"
matrix:
fast_finish: true
include:
- os: linux
node_js: "7"
env: WEBPACK_VERSION="2.2.0" JOB_PART=lint
- os: linux
node_js: "6"
env: WEBPACK_VERSION="2.2.0" JOB_PART=test
- os: linux
node_js: "4.7"
env: WEBPACK_VERSION="2.2.0" JOB_PART=test
- os: linux
node_js: "7"
env: WEBPACK_VERSION="2.2.0" JOB_PART=test
before_install:
- nvm --version
- node --version
- npm --version
before_script:
- 'if [ "$WEBPACK_VERSION" ]; then npm install webpack@^$WEBPACK_VERSION; fi'
script:
- npm run build
- npm test
- npm run travis:$JOB_PART
after_success:
- bash <(curl -s https://codecov.io/bash)
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"test.unit": "mocha --compilers js:babel-register --full-trace --check-leaks test/unit",
"test.integration": "npm run build && karma start --single-run",
"travis": "npm run test.unit && npm run test.integration",
"travis:test": "npm run test.unit",
"travis:lint": "npm run lint",
"release": "standard-version",
"release:tag:v2": "git push --follow-tags origin v2",
"release:publish": "npm run build:release && npm publish --access public --tag",
Expand Down

0 comments on commit 3224862

Please sign in to comment.