Browse Source

Add travis and coveralls integration

pull/2/head
Luke Childs 9 years ago
parent
commit
ba12c918a7
  1. 1
      .gitignore
  2. 4
      .travis.yml
  3. 7
      package.json

1
.gitignore

@ -1 +1,2 @@
node_modules
.nyc_output

4
.travis.yml

@ -0,0 +1,4 @@
language: node_js
node_js: node
script: npm run test
after_success: npm run coverage

7
package.json

@ -4,7 +4,8 @@
"description": "Simulates a global browser environment using jsdom",
"main": "src/index.js",
"scripts": {
"test": "ava test"
"test": "nyc ava test",
"coverage": "nyc report --reporter=text-lcov | coveralls"
},
"repository": {
"type": "git",
@ -27,6 +28,8 @@
"jsdom": "^9.2.0"
},
"devDependencies": {
"ava": "^0.14.0"
"ava": "^0.14.0",
"coveralls": "^2.11.9",
"nyc": "^6.4.4"
}
}

Loading…
Cancel
Save