From 1232c8efdbaae7b68b6f0cfa76ea806305c06cb5 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 | 6 +++--- 3 files changed, 9 insertions(+), 4 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..322e819c 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,11 @@ "description": "Loads environment variables from .env file", "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",