Skip to content

Commit

Permalink
chore(build): Adds travis matrix
Browse files Browse the repository at this point in the history
* add travis-ci matrix covering supported os and webpack versions
* removes webpack 2 beta as a devDep ( we support both majors )
* fixes peerDep for webpack 1.x ( 1.4.0 doesn't exist )
  • Loading branch information
joshwiens committed Aug 7, 2016
1 parent ae35f64 commit 9649e99
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
19 changes: 16 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,21 @@ os:
- osx
node_js:
- node
- "6"
- "5"
- "4"

script: npm test
env:
- export WEBPACK_VERSION="2.1.0-beta"
- export WEBPACK_VERSION="1.13.0"
matrix:
fast_finish: true
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
after_success:
- bash <(curl -s https://codecov.io/bash)
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict' // eslint-disable-line strict

const gulp = require('gulp')
const del = require('del')
const util = require('gulp-util')
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"url": "https://github.com/webpack/karma-webpack.git"
},
"peerDependencies": {
"webpack": "^1.4.0 || ^2 || ^2.1.0-beta"
"webpack": "^1.1.0 || ^2 || ^2.1.0-beta"
},
"dependencies": {
"async": "~0.9.0",
Expand Down Expand Up @@ -66,8 +66,7 @@
"karma-chrome-launcher": "~1.0.1",
"karma-mocha": "~1.1.1",
"karma-spec-reporter": "~0.0.22",
"mocha": "^2.5.3",
"webpack": "^2.1.0-beta.20"
"mocha": "^2.5.3"
},
"config": {
"commitizen": {
Expand Down

0 comments on commit 9649e99

Please sign in to comment.