From 4d783481432e55a4da8bc01c1be92deae7f0f567 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Fri, 22 Sep 2017 14:32:37 +0200 Subject: [PATCH] attempt to fix node v0.10.x --- .travis.yml | 2 +- appveyor.yml | 4 ++-- package.json | 7 ++++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8413141b..35d7ef45 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,10 +17,10 @@ addons: env: matrix: + - NODE_VERSION="0.10" - NODE_VERSION="6" RETIRE=true - NODE_VERSION="4" - NODE_VERSION="5" - - NODE_VERSION="6" - NODE_VERSION="7" - NODE_VERSION="8" diff --git a/appveyor.yml b/appveyor.yml index e14e0724..88ca0749 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -19,11 +19,11 @@ install: - npm config get # upgrade node-gyp to dodge 2013 compile issue present in the node gyp bundled with node v0.10 # https://github.com/nodejs/node-gyp/issues/972#issuecomment-231055109 - - IF "%nodejs_version:~0,1%"=="0" npm install node-gyp@3.x + - IF "%nodejs_version:~0,1%"=="0" npm install https://github.com/springmeyer/node-gyp/tarball/v3.x # upgrade node-gyp to dodge https://github.com/mapbox/node-pre-gyp/issues/209#issuecomment-307641388 # and allow make node 4.x x86 builds work # https://github.com/mapbox/node-pre-gyp/issues/209#issuecomment-217690537 - - IF "%nodejs_version:~0,1%"=="4" npm install node-gyp@3.x + - IF "%nodejs_version:~0,1%"=="4" npm install https://github.com/springmeyer/node-gyp/tarball/v3.x # downgrade npm to avoid multiple npm bugs: # for node v6 this dodges npm 3.10.10 bug whereby --nodedir/--dist-url is not passed to node-gyp (https://github.com/mapbox/node-pre-gyp/issues/300) # for all node x86 versions this dodges a mysterious ELIFECYCLE error: https://ci.appveyor.com/project/Mapbox/node-pre-gyp/build/1.0.582/job/b8q2nud6vkj0s6qo#L233 diff --git a/package.json b/package.json index 62a81677..b5772a2e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "node-pre-gyp", "description": "Node.js native addon binary install tool", - "version" : "0.6.37", + "version": "0.6.37", "keywords": [ "native", "addon", @@ -24,7 +24,8 @@ "nopt": "^4.0.1", "npmlog": "^4.0.2", "rc": "^1.1.7", - "request": "^2.81.0", + "request": "2.81.0", + "hawk":"3.1.3", "rimraf": "^2.6.1", "semver": "^5.3.0", "tar": "^2.2.1", @@ -44,7 +45,7 @@ "noarg": true }, "scripts": { - "pretest": "jshint test/build.test.js test/s3_setup.test.js test/versioning.test.js", + "pretest": "jshint test/build.test.js test/s3_setup.test.js test/versioning.test.js lib lib/util scripts bin/node-pre-gyp", "update-crosswalk": "node scripts/abi_crosswalk.js", "test": "jshint lib lib/util scripts bin/node-pre-gyp && tape test/*test.js" }