Skip to content

Commit

Permalink
Added commands for testing webpacks 3 and 4
Browse files Browse the repository at this point in the history
  • Loading branch information
arthanzel committed Mar 8, 2018
1 parent 77d39f3 commit e8cdc6e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
language: node_js
node_js: node
env:
- WEBPACK_VERSION="[email protected]"
- WEBPACK_VERSION="[email protected]"
install:
- npm install
script:
- npm install $WEBPACK_VERSION
- npm test # The pretest hook runs a build
- npm run test3 # The pretest hook runs a build
- npm run test4
before_deploy:
- mv .gitignore-deploy .gitignore
deploy:
Expand All @@ -17,5 +15,4 @@ deploy:
api_key: "$NPM_API_KEY"
on:
branch: deploy
tags: true
condition: $WEBPACK_VERSION = "[email protected]" # Only deploy once
tags: true
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"scripts": {
"build": "babel -d dist src",
"test": "mocha --require babel-register",
"test3": "npm install [email protected] && npm run test",
"test4": "npm install [email protected] && npm run test",
"pretest": "npm run build"
},
"repository": {
Expand Down

0 comments on commit e8cdc6e

Please sign in to comment.