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/3] 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/3] 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 2b6ff903019914b95d2dd2b0f0ade3076dcdfc95 Mon Sep 17 00:00:00 2001 From: Matthew Francis Brunetti Date: Mon, 26 Feb 2018 04:40:31 -0300 Subject: [PATCH 3/3] 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",