Skip to content

Instantly share code, notes, and snippets.

@dj1020
Created July 23, 2015 02:38
Show Gist options
  • Save dj1020/f0785a2ea5921aa5fbad to your computer and use it in GitHub Desktop.
Save dj1020/f0785a2ea5921aa5fbad to your computer and use it in GitHub Desktop.
Gulp with PHPUnit simplest config file
var gulp = require('gulp'),
exec = require('child_process').exec,
sys = require('sys'),
util = require('util');
gulp.task('phpunit', function() {
exec('clear', function(error, stdout, stderr){
util.puts(stdout);
exec('phpunit', function(error, stdout) {
sys.puts(stdout);
});
});
});
gulp.task('watch', function() {
gulp.watch('./**/*.php', ['phpunit']);
});
gulp.task('default', ['phpunit', 'watch'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment