]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Prevent Travis from failing by not running the entire build process with npm test
authorGeoff Kimball <geoff@zurb.com>
Thu, 18 Feb 2016 17:34:59 +0000 (09:34 -0800)
committerGeoff Kimball <geoff@zurb.com>
Thu, 18 Feb 2016 17:34:59 +0000 (09:34 -0800)
gulp/test.js
gulpfile.js

index fbc72f4d237cc9ee42eac531284788f87ee79485..81e5788f6316816d59bed15a5bf6980381f5f148 100644 (file)
@@ -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']);
 });
index e3945b2168e88251989be4ea4fc84a7a5d6c3097..6cfebaff68c988ed68e0c0b46c987b9348e2856a 100644 (file)
@@ -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']);