Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var gulp = require('gulp');
- var phpspec = require('gulp-phpspec');
- var run = require('gulp-run');
- var plumber = require('gulp-plumber');
- var notify = require('gulp-notify');
- gulp.task('test', function() {
- gulp.src('spec/**/*.php')
- .pipe(phpspec('', { 'verbose': 'v', clear: true, notify: true }))
- .on('error', notify.onError({
- title: "Crap",
- message: "Your tests failed, Jeffrey!",
- icon: __dirname + '/fail.png'
- }))
- .pipe(notify({
- title: "Success",
- message: "All tests have returned green!"
- }));
- });
- gulp.task('watch', function() {
- gulp.watch(['spec/**/*.php', 'src/**/*.php'], ['test']);
- });
- gulp.task('default', ['test', 'watch']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement