From 7e84179047a213146d1ad0d466766931596a888d Mon Sep 17 00:00:00 2001 From: Mike McNeil Date: Sat, 24 Mar 2018 17:23:08 -0500 Subject: [PATCH] More adjustments for Appveyor CI and Travis CI --- .travis.yml | 3 +++ appveyor.yml | 2 +- package.json | 6 +++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3d4b29b..e819aad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,3 +24,6 @@ branches: notifications: email: - ci@sailsjs.com + +env: + - NODE_ENV=production diff --git a/appveyor.yml b/appveyor.yml index 3fa2df5..d448a4a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -35,7 +35,7 @@ test_script: - node --version - npm --version # Run the actual tests. - - npm run custom-tests && node ./node_modules/mocha/bin/mocha test/*.benchmark.js + - npm run custom-tests && mocha test/*.benchmark.js # Don't actually build. diff --git a/package.json b/package.json index 79f3914..4b97941 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "description": "Practical, lightweight flow control for Node.js. Supports `await`, callbacks and promises.", "main": "lib/parley.js", "scripts": { - "custom-tests": "node ./node_modules/mocha/bin/mocha test/*.test.js", - "lint": "node ./node_modules/eslint/bin/eslint . --max-warnings=0 --ignore-pattern 'test/' && echo '✔ Your code looks good.'", - "bench": "node ./node_modules/mocha/bin/mocha test/*.benchmark.js", + "custom-tests": "mocha test/*.test.js", + "lint": "node eslint . --max-warnings=0 --ignore-pattern 'test/' && echo '✔ Your code looks good.'", + "bench": "node mocha test/*.benchmark.js", "test": "npm run lint && npm run custom-tests && npm run bench" }, "repository": {