From: Geoff Kimball Date: Thu, 18 Feb 2016 17:34:59 +0000 (-0800) Subject: Prevent Travis from failing by not running the entire build process with npm test X-Git-Tag: v6.2.0~40^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0621d8c32bc6e249c0ccd3713bcb9deea57f875;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Prevent Travis from failing by not running the entire build process with npm test --- diff --git a/gulp/test.js b/gulp/test.js index fbc72f4d2..81e5788f6 100644 --- a/gulp/test.js +++ b/gulp/test.js @@ -4,7 +4,7 @@ var mocha = require('gulp-mocha'); var browser = require('browser-sync'); // Runs unit tests -gulp.task('test', ['build', 'test:sass', 'test:javascript'], function() { +gulp.task('test', ['sass:foundation', 'javascript:foundation', 'test:sass', 'test:javascript', 'watch'], function() { browser.init({ server: 'test/visual' }); gulp.watch(['scss/**/*', 'js/**/*', 'test/visual/**/*'], ['test:reload']); }); diff --git a/gulpfile.js b/gulpfile.js index e3945b216..6cfebaff6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -13,8 +13,8 @@ gulp.task('serve', ['build'], function(){ browser.init({server: './_build', port: port}); }); -// Runs all of the above tasks and then waits for files to change -gulp.task('default', ['serve'], function() { +// Watch files for changes +gulp.task('watch', function() { gulp.watch('docs/**/*', ['docs', browser.reload]); gulp.watch(['docs/layout/*.html', 'docs/partials/*.html'], ['docs:all', browser.reload]); gulp.watch('scss/**/*', ['sass', browser.reload]); @@ -22,3 +22,6 @@ gulp.task('default', ['serve'], function() { gulp.watch('js/**/*', ['javascript:foundation', browser.reload]); gulp.watch('docs/assets/js/**/*', ['javascript:docs', browser.reload]); }); + +// Runs all of the above tasks and then waits for files to change +gulp.task('default', ['serve', 'watch']);