Workarounding node-gyp issue.

This commit is contained in:
Nicolas "Pixel" Noble 2018-04-10 00:08:43 +02:00 committed by murgatroid99
parent 8c92bdbc33
commit aaf8696d42
4 changed files with 15 additions and 2 deletions

View File

@ -29,15 +29,19 @@ SET JOBS=8
call nvm version
call nvm install 8
call nvm use 8
call npm install || goto :error
SET JUNIT_REPORT_STACK=1
SET FAILED=0
for %%v in (4 6 7 8) do (
for %%v in (4 6 7 8 9) do (
call nvm install %%v
call nvm use %%v
call npm install -g npm
@rem https://github.com/mapbox/node-pre-gyp/issues/362
call npm install -g node-gyp
node -e "console.log(process.versions)"
mkdir reports\node%%v

View File

@ -26,7 +26,7 @@ set -ex
cd $ROOT
if [ ! -n "$node_versions" ] ; then
node_versions="4 5 6 7 8"
node_versions="4 5 6 7 8 9"
fi
set +ex
@ -51,6 +51,9 @@ do
nvm use $version
set -ex
# https://github.com/mapbox/node-pre-gyp/issues/362
npm install -g node-gyp
mkdir -p "reports/node$version"
node -e 'process.exit(process.version.startsWith("v'$version'") ? 0 : -1)'

View File

@ -14,6 +14,9 @@
@echo "Starting Windows build"
@rem https://github.com/mapbox/node-pre-gyp/issues/362
call npm install -g node-gyp
cd /d %~dp0
cd ..\..

View File

@ -13,6 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# https://github.com/mapbox/node-pre-gyp/issues/362
npm install -g node-gyp
set -ex
cd $(dirname $0)/../..
base_dir=$(pwd)