Merge pull request #44 from matt-kwong/kokoro

Script changes to allow testing from grpc/grpc
This commit is contained in:
Matt Kwong 2017-09-19 16:52:06 -07:00 committed by GitHub
commit 71f5d51a49
5 changed files with 7 additions and 4 deletions

View File

@ -19,7 +19,7 @@ gulp.task('health-check.clean.all', 'Delete all code created by tasks',
['health-check.clean.links']);
gulp.task('health-check.install', 'Install health check dependencies', () => {
return execa('npm', ['install'], {cwd: healthCheckDir, stdio: 'inherit'});
return execa('npm', ['install', '--unsafe-perm'], {cwd: healthCheckDir, stdio: 'inherit'});
});
gulp.task('health-check.link.add', 'Link local copy of grpc', ['health-check.install'], () => {

View File

@ -81,7 +81,7 @@ function makeCompileFn(globs) {
}
gulp.task('js.core.install', 'Install native core dependencies', () => {
return execa('npm', ['install'], {cwd: jsCoreDir, stdio: 'inherit'});
return execa('npm', ['install', '--unsafe-perm'], {cwd: jsCoreDir, stdio: 'inherit'});
});
/**

View File

@ -26,7 +26,7 @@ gulp.task('native.core.clean.all', 'Delete all files created by tasks',
['native.core.clean']);
gulp.task('native.core.install', 'Install native core dependencies', () => {
return execa('npm', ['install', '--build-from-source'],
return execa('npm', ['install', '--build-from-source', '--unsafe-perm'],
{cwd: nativeCoreDir, stdio: 'inherit'});
});

View File

@ -34,7 +34,7 @@ nvm install lts/*
nvm use lts/*
set -ex
npm install
npm install --unsafe-perm
./node_modules/.bin/gulp setup
mkdir -p reports

View File

@ -15,6 +15,9 @@
#
# This script updates the gRPC submodule to a given reference and run tests
# cd to gRPC-node root directory
cd $(dirname $0)
cd packages/grpc-native-core/deps/grpc/
# PR references are needed to test PRs from grpc/grpc