From 08e876a74b3d5f617c5dbf79437c5f2fe5721bf7 Mon Sep 17 00:00:00 2001 From: Matthew Francis Brunetti Date: Mon, 26 Feb 2018 03:23:35 -0300 Subject: [PATCH 1/4] Configure Appveyor --- appveyor.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index aa0cee3e..f55b8a4b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,3 +1,13 @@ -version: 4.0.{build} -build: - verbosity: minimal +version: "{build}" +build: off +environment: + matrix: + - nodejs_version: "4" + - nodejs_version: "6" + - nodejs_version: "8" + - nodejs_version: "9" +install: + - ps: Install-Product node $env:nodejs_version + - npm install +test_script: + - npm test From 257c1d5f662328a1ef3cf34a599788991f98da38 Mon Sep 17 00:00:00 2001 From: Matthew Francis Brunetti Date: Sun, 25 Feb 2018 21:39:58 -0300 Subject: [PATCH 2/4] Don't use glob in package test script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 104d4154..fa101feb 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "lib/main.js", "scripts": { "pretest": "npm run lint", - "test": "lab test/* -r lcov | coveralls", + "test": "lab -r lcov | coveralls", "lint": "standard", "postlint": "npm run lint-md", "lint-md": "standard-markdown" From 1232c8efdbaae7b68b6f0cfa76ea806305c06cb5 Mon Sep 17 00:00:00 2001 From: Matthew Francis Brunetti Date: Mon, 26 Feb 2018 04:40:31 -0300 Subject: [PATCH 3/4] 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", From 78110996afa818eb78b9a47bd3759da8fea7f687 Mon Sep 17 00:00:00 2001 From: Matthew Francis Brunetti Date: Mon, 26 Feb 2018 05:19:28 -0300 Subject: [PATCH 4/4] Also report test *output* on Travis --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index fab8b3b0..263ce3dd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,5 @@ node_js: script: - npm run lint + - npm run test - npm run coverage