-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathgulpfile.js
More file actions
25 lines (22 loc) · 714 Bytes
/
gulpfile.js
File metadata and controls
25 lines (22 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
var gulp = require('gulp');
var phpunit = require('gulp-phpunit');
var notify = require('gulp-notify');
gulp.task('test', function() {
gulp.src('')
.pipe(phpunit('', {notify: false}))
.on('error', notify.onError({
title: "RiveScript PHP",
message: "Tests failed.",
icon: __dirname + '/tests/resources/failed.png'
}))
.pipe(notify({
title: "RiveScript PHP",
message: "Tests passed!",
icon: __dirname + '/tests/resources/success.png'
}));
});
gulp.task('watch', function() {
gulp.watch('**/*.php', ['test']);
gulp.watch('**/*.rive', ['test']);
});
gulp.task('default', ['test', 'watch']);