Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. var gulp = require('gulp');
  2. var phpspec = require('gulp-phpspec');
  3. var run = require('gulp-run');
  4. var notify = require('gulp-notify');
  5.  
  6. gulp.task('test',function(){
  7. gulp.src('spec/**/*.php')
  8. .pipe(phpspec('',{ clear:true, notify: true}))
  9. .on('error', notify.onError({
  10. title: 'Crap',
  11. message: 'Test Failed',
  12. icon: __dirname + '/fail.png',
  13. sound: 'Frog'
  14. }))
  15. .pipe(notify({
  16. title: 'Success',
  17. message: 'All tests have returned green!'
  18. }));
  19. });
  20.  
  21. gulp.task('watch', function() {
  22. gulp.watch(['spec/**/*.php', 'src/**/*.php'], ['test']);
  23. });
  24.  
  25. gulp.task('default', ['test', 'watch']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement