test dir don't need links

This commit is contained in:
Kelvin Jin 2017-10-25 15:52:52 -07:00
parent afca1967cc
commit 40ce5ec09b
2 changed files with 2 additions and 15 deletions

View File

@ -48,7 +48,7 @@ gulp.task('core.link', 'Add links to core packages without rebuilding',
['js.link.add', 'native.link.add']);
gulp.task('surface.link', 'Link to surface packages',
['health-check.link.add', 'internal.test.link.add']);
['health-check.link.add']);
gulp.task('link', 'Link together packages', (callback) => {
/* Currently, the target 'surface.link.create' doesn't work properly, and it

View File

@ -29,24 +29,11 @@ const gulp = help(_gulp);
const testDir = __dirname;
const apiTestDir = path.resolve(testDir, 'api');
gulp.task('internal.test.clean.links', 'Delete npm links', () => {
return del([
path.resolve(testDir, 'node_modules/@grpc/js'),
path.resolve(testDir, 'node_modules/@grpc/native')
]);
});
gulp.task('internal.test.install', 'Install test dependencies', () => {
return execa('npm', ['install'], {cwd: testDir, stdio: 'inherit'});
});
gulp.task('internal.test.clean.all', 'Delete all files created by tasks',
['internal.test.clean.links']);
gulp.task('internal.test.link.add', 'Link local copies of dependencies', () => {
linkSync(testDir, './node_modules/@grpc/js', '../packages/grpc-js');
linkSync(testDir, './node_modules/grpc', '../packages/grpc-native-core');
});
gulp.task('internal.test.clean.all', 'Delete all files created by tasks', () => {});
gulp.task('internal.test.test', 'Run API-level tests', () => {
// run mocha tests matching a glob with a pre-required fixture,