mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Workarounding node-gyp issue.
This commit is contained in:
parent
8c92bdbc33
commit
aaf8696d42
@ -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
|
||||
|
||||
@ -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)'
|
||||
|
||||
@ -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 ..\..
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user