Skip to content

Commit

Permalink
chore(travis): support for semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
gtkatakura committed Sep 28, 2018
1 parent c01ff7f commit fa9687d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ node_js:
- 8

before_install:
- npm install codecov.io coveralls
- yarn add codecov.io coveralls

after_success:
- cat ./coverage/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- nvm install 8 && yarn global add semantic-release
- npm run travis-deploy-once "npm run semantic-release"

branches:
only:
- master

cache: yarn
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"prepublishOnly": "npm run build",
"test": "nwb test",
"test:coverage": "nwb test --coverage",
"test:watch": "nwb test --server"
"test:watch": "nwb test --server",
"semantic-release": "semantic-release"
},
"dependencies": {
},
Expand Down

0 comments on commit fa9687d

Please sign in to comment.