From: Tanner Linsley Date: Fri, 11 Sep 2015 04:46:07 +0000 (-0600) Subject: Do not test on gulp watch X-Git-Tag: 2.0.0-alpha4~26^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98eea76195402b0908c7462eb6d40d779fb81a44;p=thirdparty%2FChart.js.git Do not test on gulp watch --- diff --git a/gulpfile.js b/gulpfile.js index 42fd09b09..c430de205 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -176,7 +176,10 @@ function moduleSizesTask() { } function watchTask() { - gulp.watch('./src/**', ['build', 'unittest', 'unittestWatch']); + if (util.env.test) { + return gulp.watch('./src/**', ['build', 'unittest', 'unittestWatch']); + } + return gulp.watch('./src/**', ['build']); } function serverTask() {