-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
32 lines (27 loc) · 946 Bytes
/
gulpfile.js
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
26
27
28
29
30
31
32
var gulp = require('gulp');
var phpunit = require('gulp-phpunit');
gulp.task('phpunit', function () {
return gulp.src('**/*Test.php')
.pipe(phpunit('.\\vendor\\bin\\phpunit', {
debug: false,
configurationFile: './phpunit.xml'
})
);
});
gulp.task('coverage', function () {
return gulp.src('**/*Test.php')
.pipe(phpunit('.\\vendor\\bin\\phpunit', {
debug: false,
configurationFile: './phpunit.xml',
coverageHtml: './build/coverage'
}
));
});
gulp.task('default', function () {
// Run phpunit test.
gulp.watch(['**/*Test.php'], {debounceDelay: 2000}, ['phpunit']);
//find ./ -not \( -path ./.svn -prune \) -not \( -path ./libs -prune \) -not \( -path ./.idea -prune \) -type f -print0 | xargs -0 file -i | grep "charset=utf-8"
});
gulp.task('build', function(){
gulp.run('phpunit');
});