Print progress output from gulp hygiene

Travis fails the build if it doesn't output anything for a long time
This commit is contained in:
Felix Becker
2017-11-02 14:23:55 -07:00
parent 1d632ec12c
commit c367b975aa
2 changed files with 10 additions and 2 deletions

View File

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

View File

@@ -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 {