From 2b6ff903019914b95d2dd2b0f0ade3076dcdfc95 Mon Sep 17 00:00:00 2001 From: Matthew Francis Brunetti Date: Mon, 26 Feb 2018 04:40:31 -0300 Subject: [PATCH] Report test coverage only on Travis --- .travis.yml | 4 ++++ appveyor.yml | 3 ++- package.json | 5 +++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3ebfa5fc..fab8b3b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,3 +5,7 @@ node_js: - 6 - 8 - 9 + +script: + - npm run lint + - npm run coverage diff --git a/appveyor.yml b/appveyor.yml index f55b8a4b..ae0252f1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,4 +10,5 @@ install: - ps: Install-Product node $env:nodejs_version - npm install test_script: - - npm test + - npm run lint + - npm run test diff --git a/package.json b/package.json index fa101feb..7be15287 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,11 @@ "main": "lib/main.js", "scripts": { "pretest": "npm run lint", - "test": "lab -r lcov | coveralls", + "test": "lab", "lint": "standard", "postlint": "npm run lint-md", - "lint-md": "standard-markdown" + "lint-md": "standard-markdown", + "coverage": "lab -r lcov | coveralls" }, "repository": { "type": "git",