From c367b975aa4db30415a88feefcf221101e0a8a56 Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Thu, 2 Nov 2017 14:23:55 -0700 Subject: [PATCH] Print progress output from gulp hygiene Travis fails the build if it doesn't output anything for a long time --- .travis.yml | 2 +- build/gulpfile.hygiene.js | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0854813e23ff5..6e70bda725945 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,7 +46,7 @@ install: - ./scripts/npm.sh install script: - - node_modules/.bin/gulp hygiene --silent + - node_modules/.bin/gulp hygiene - node_modules/.bin/gulp electron --silent - node_modules/.bin/gulp compile --silent --max_old_space_size=4096 - node_modules/.bin/gulp optimize-vscode --silent --max_old_space_size=4096 diff --git a/build/gulpfile.hygiene.js b/build/gulpfile.hygiene.js index eb0fdd15e2350..cc1c624a9cb6b 100644 --- a/build/gulpfile.hygiene.js +++ b/build/gulpfile.hygiene.js @@ -256,8 +256,16 @@ const hygiene = exports.hygiene = (some, options) => { .pipe(gulpeslint.formatEach('compact')) .pipe(gulpeslint.failAfterError()); + let count = 0; return es.merge(typescript, javascript) - .pipe(es.through(null, function () { + .pipe(es.through(function (data) { + count++; + if (count % 10 === 0) { + process.stdout.write('.'); + } + this.emit('data', data); + }, function () { + process.stdout.write('\n'); if (errorCount > 0) { this.emit('error', 'Hygiene failed with ' + errorCount + ' errors. Check \'build/gulpfile.hygiene.js\'.'); } else {