8000 Fix integration nightly test (#1703) · tensorflow/tfjs-core@95a2139 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Aug 15, 2019. It is now read-only.

Commit 95a2139

Browse files
authored
Fix integration nightly test (#1703)
INTERNAL
1 parent af1040d commit 95a2139

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

scripts/test-integration.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,35 +24,37 @@ echo '######################'
2424
echo 'Nightly build or version.ts was modified.'
2525
echo 'Testing layers/converter/node/data against tfjs-core@master.'
2626
echo '######################'
27-
yarn build && yarn run yalc publish
27+
yarn build && yarn yalc publish
2828

2929
echo 'Cloning layers'
3030
git clone https://github.com/tensorflow/tfjs-layers.git --depth 1
3131
cd tfjs-layers
32-
yarn && yarn link-local '@tensorflow/tfjs-core' && ./scripts/test-travis.sh
32+
yarn && yarn link-local '@tensorflow/tfjs-core'
33+
yarn test-ci
3334
LAYERS_EXIT_CODE=$?
3435

3536
cd ..
3637
echo 'Cloning node'
3738
git clone https://github.com/tensorflow/tfjs-node.git --depth 1
3839
cd tfjs-node
39-
yarn && yarn link-local '@tensorflow/tfjs-core' && ./scripts/test-travis.sh
40+
yarn && yarn link-local '@tensorflow/tfjs-core'
41+
yarn test-ci
4042
NODE_EXIT_CODE=$?
4143

4244
cd ..
4345
echo 'Cloning converter'
4446
git clone https://github.com/tensorflow/tfjs-converter.git --depth 1
4547
cd tfjs-converter
4648
yarn && yarn link-local '@tensorflow/tfjs-core'
47-
yarn build && yarn lint && yarn test-travis
49+
yarn test-ci
4850
CONVERTER_EXIT_CODE=$?
4951

5052
cd ..
5153
echo 'Cloning data'
5254
git clone https://github.com/tensorflow/tfjs-data.git --depth 1
5355
cd tfjs-data
5456
yarn && yarn link-local '@tensorflow/tfjs-core'
55-
yarn build && yarn lint && yarn test-travis
57+
yarn test-ci
5658
DATA_EXIT_CODE=$?
5759

5860
echo '==== INTEGRATION TEST RESULTS ===='

scripts/test-util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function exec(command, opt, ignoreCode) {
1919
const res = shell.exec(command, opt);
2020
if (!ignoreCode && res.code !== 0) {
2121
shell.echo('command', command, 'returned code', res.code);
22-
shell.exit(1);
22+
process.exit(1);
2323
}
2424
return res;
2525
}

0 commit comments

Comments
 (0)
0