Skip to content

Commit

Permalink
added travis and coveralls integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Wemyss committed Dec 17, 2017
1 parent bb9b529 commit bee44dd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: node_js
node_js:
- node
- '8'
script:
- npm run build
- npm test
after_script:
- npm install coveralls && npm run coveralls
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"test": "nyc mocha ./src/index.spec.js --compilers js:babel-core/register",
"build": "babel src/index.js --out-file ./index.js"
"build": "babel src/index.js --out-file ./index.js",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit bee44dd

Please sign in to comment.