diff --git a/.gitignore b/.gitignore index 3c3629e..c9106a7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +.nyc_output diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..d9547de --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +language: node_js +node_js: node +script: npm run test +after_success: npm run coverage diff --git a/package.json b/package.json index b7c6d20..dbd2097 100644 --- a/package.json +++ b/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" } }