Skip to content

Commit 2ffbdfb

Browse files
committed
travis fix
1 parent 7debbb2 commit 2ffbdfb

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ script:
77
- lerna bootstrap --ignore={demos}
88
- yarn test:unit
99
- lerna run test
10-
- node ./tests/bin/run-on-first-ci-job.js yarn test:integration:build
11-
- node ./tests/bin/run-on-first-ci-job.js yarn test:integration
10+
- node ./tests/bin/run-on-first-ci-job.js "yarn test:integration:build"
11+
- node ./tests/bin/run-on-first-ci-job.js "yarn test:integration"
1212
after_success: "yarn coveralls"
1313
cache:
1414
yarn: true

tests/bin/run-on-first-ci-job.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ if (ciJobNumber() !== 1) {
77
}
88

99
// Run the command otherwise.
10-
const command = process.argv[2];
11-
const args = process.argv.slice(3);
10+
const parts = process.argv[2].split(" ");
1211

13-
const execution = spawn(command, args);
12+
const execution = spawn(parts[0], parts.slice(1));
1413

1514
execution.stdout.on("data", data => {
1615
process.stdout.write(data.toString());
@@ -19,3 +18,5 @@ execution.stdout.on("data", data => {
1918
execution.stderr.on("data", data => {
2019
console.error(data.toString());
2120
});
21+
22+
execution.on("close", code => process.exit(code));

0 commit comments

Comments
 (0)