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:
Jonas Jenwald 2019-12-18 21:26:44 +01:00
parent 7ceb394c43
commit f406263fc2
2 changed files with 4 additions and 1 deletions

View File

@ -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'));

View File

@ -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",