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 aa0cee3e..ae0252f1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,3 +1,14 @@ -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 run lint + - npm run test diff --git a/package.json b/package.json index 104d4154..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 test/* -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",