From 1122e71a52b0f805fad860223cce99a97bd7c0f8 Mon Sep 17 00:00:00 2001 From: Brian Donovan Date: Fri, 22 Dec 2017 08:34:46 -0800 Subject: [PATCH 1/2] Print version information earlier. Since `install` runs the tests, we need to print the node and npm versions before installing in case the tests fail. --- appveyor.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 971bdc1..06cf692 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -7,9 +7,9 @@ build: off deploy: off install: + - node --version + - npm --version - npm install test_script: - - node --version - - npm --version - npm test From 25f3ba9f75e602437bc625bea1bff5898682b635 Mon Sep 17 00:00:00 2001 From: Brian Donovan Date: Fri, 22 Dec 2017 08:41:55 -0800 Subject: [PATCH 2/2] Test with node versions 7-9. Since we use an untranspiled `async` function in `test/test.js` we need at least node v7.6.0. I think it's best to use explicit versions and update them periodically instead of relying on tags like `stable`, since `stable` means v9.3.0 with TravisCI and v4.8.6 with AppVeyor. --- .travis.yml | 4 +++- appveyor.yml | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7a56d2a..8c47a4d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,5 @@ language: node_js node_js: - - "stable" + - "9" + - "8" + - "7" diff --git a/appveyor.yml b/appveyor.yml index 06cf692..728b89b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,12 +1,15 @@ environment: matrix: - - nodejs_version: "stable" + - nodejs_version: "9" + - nodejs_version: "8" + - nodejs_version: "7" version: "{build}" build: off deploy: off install: + - ps: Install-Product node $env:nodejs_version - node --version - npm --version - npm install