Browse Source

Integrate AVA with Travis and Coveralls

transpile
Luke Childs 8 years ago
parent
commit
b8fc4cc0a5
  1. 3
      .travis.yml
  2. 5
      package.json

3
.travis.yml

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

5
package.json

@ -5,7 +5,8 @@
"main": "src/index.js",
"scripts": {
"lint": "xo",
"test": "ava"
"test": "nyc ava",
"coverage": "nyc report --reporter=text-lcov | coveralls"
},
"ava": {
"require": [
@ -38,6 +39,8 @@
"devDependencies": {
"ava": "^0.17.0",
"browser-env": "^2.0.19",
"coveralls": "^2.11.15",
"nyc": "^10.0.0",
"xo": "^0.17.1"
}
}

Loading…
Cancel
Save