Skip to content

Commit

Permalink
Prepared for Travis CI. Test tasks now includes flow and code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHus committed May 31, 2017
1 parent 6060347 commit db131ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: node_js
node_js: '6'
sudo: false
after_success:
- bash <(curl -s https://codecov.io/bash)

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
},
"scripts": {
"start": "jest test --watch",
"test": "jest test",
"test": "npm run flow && jest test --coverage",
"coverage": "npm test -- --coverage",
"flow": "flow",
"prepublish": "rm -rf lib && npm run flow && npm test && npm run babel-prepublish && npm run flow-prepublish",
"prepublish": "rm -rf lib && npm test && npm run babel-prepublish && npm run flow-prepublish",
"babel-prepublish": "babel src/ -d lib",
"flow-prepublish": "flow-copy-source -v src lib"
}
Expand Down

0 comments on commit db131ce

Please sign in to comment.