From ba12c918a78627d7fe92622320c9311d0e1bc575 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Tue, 24 May 2016 23:15:39 +0100 Subject: [PATCH] Add travis and coveralls integration --- .gitignore | 1 + .travis.yml | 4 ++++ package.json | 7 +++++-- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .travis.yml 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" } }