Skip to content

Commit

Permalink
add travis job
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Carroll committed Apr 5, 2019
1 parent 83e425d commit 9b39c66
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
sudo: false
language: node_js
node_js:
- '8'
- '9'
- '10'
- '11'
cache:
npm: true
directories:
- coverage
notifications:
email: false
branches:
only:
- master
install: npm install
script: npm run test
jobs:
include:
- stage: release
node_js: '10'
install: npm install -g codecov
script:
- codecov
- npm run semantic-release
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"commit:all": "npm run commit:add && npm run commit",
"test": "jest",
"pretty-quick": "pretty-quick --staged --pattern '**/*.(js|jsx|ts|tsx)'",
"prepublish": "rm -rf dist; babel src --out-dir dist --ignore 'src/__tests__/*'",
"prepublishOnly": "rm -rf dist; babel src --out-dir dist --ignore 'src/__tests__/*'",
"semantic-release": "semantic-release",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch --coverage"
Expand Down

0 comments on commit 9b39c66

Please sign in to comment.