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

Loading…
Cancel
Save