Browse Source

Integrate with Travis and Coveralls

pull/14/head
Luke Childs 8 years ago
parent
commit
bc1362a262
  1. 7
      .travis.yml
  2. 7
      package.json

7
.travis.yml

@ -0,0 +1,7 @@
language: node_js
node_js: node
script: npm run lint && npm test
after_success: npm run coverage
notifications:
email:
on_success: never

7
package.json

@ -4,8 +4,9 @@
"description": "Node client for the Onionoo Tor API",
"main": "src/index.js",
"scripts": {
"test": "ava",
"lint": "snazzy"
"test": "nyc ava",
"lint": "snazzy",
"coverage": "nyc report --reporter=text-lcov | coveralls"
},
"repository": {
"type": "git",
@ -30,6 +31,8 @@
},
"devDependencies": {
"ava": "^0.17.0",
"coveralls": "^2.11.15",
"nyc": "^10.0.0",
"snazzy": "^5.0.0"
}
}

Loading…
Cancel
Save