From b8fc4cc0a5c28e85e2aa815f0894f41ea985adcf Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Mon, 16 Jan 2017 17:01:20 +0700 Subject: [PATCH] Integrate AVA with Travis and Coveralls --- .travis.yml | 3 ++- package.json | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1597176..d8b251d 100644 --- a/.travis.yml +++ b/.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 diff --git a/package.json b/package.json index 251832f..504b68f 100644 --- a/package.json +++ b/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" } }