From 8308b87f91093f3d1e9b0fc4c167f3a0b793baa2 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Sun, 26 Apr 2015 16:13:47 +0200 Subject: [PATCH] Move coverage into it's own target --- .travis.yml | 2 ++ package.json | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 11309ba..6bfb084 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,8 @@ +sudo: false language: node_js node_js: - iojs - 0.12 - 0.10 +script: npm run cover after_success: cat coverage/lcov.info | node_modules/.bin/coveralls --verbose diff --git a/package.json b/package.json index 8541eb9..480a9ec 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,10 @@ "scripts": { "clean": "rimraf coverage/", "lint": "jscs index.js test/ & jshint index.js test/", - "pretest": "npm run clean && npm run lint", - "test": "istanbul cover _mocha" + "pretest": "npm run lint", + "test": "mocha", + "precover": "npm run lint && npm run clean", + "cover": "istanbul cover _mocha" }, "repository": { "type": "git",