Re-factor the npm test
command, used by Travis, to avoid running the 'default_preferences' tasks concurrently (issue 10732)
*Please note:* This patch does *not* prevent the 'default_preferences' task from running more than once during `npm test`, but it does ensure that the tasks won't run *concurrently* by running the relevant tests in *series*. While it would obviously still make sense to re-factor the gulpfile to account for changes in `gulp` version 4, by at least tweaking the `npm test` command the intermittent failures on Travis should at least go away.
This commit is contained in:
parent
7ceb394c43
commit
f406263fc2
@ -1502,3 +1502,6 @@ gulp.task('externaltest', function (done) {
|
|||||||
{ stdio: 'inherit', });
|
{ stdio: 'inherit', });
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gulp.task('npm-test', gulp.series(gulp.parallel('lint', 'externaltest'),
|
||||||
|
'unittestcli'));
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
"yargs": "^11.1.1"
|
"yargs": "^11.1.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "env SKIP_BABEL=true gulp lint unittestcli externaltest"
|
"test": "env SKIP_BABEL=true gulp npm-test"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
Loading…
Reference in New Issue
Block a user