Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d9272f
commit 1b1bff7
Showing
8 changed files
with
654 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.idea | ||
node_modules | ||
vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
var gulp = require('gulp'); | ||
var phpspec = require('gulp-phpspec'); | ||
var run = require('gulp-run'); | ||
var notify = require('gulp-notify'); | ||
|
||
gulp.task('test', function() { | ||
gulp.src('spec/**/*.php') | ||
.pipe(run('clear')) | ||
.pipe(phpspec('', { 'verbose': 'v', 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']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"require": { | ||
"phpspec/phpspec": "~2.0" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"": "src" | ||
} | ||
} | ||
} |
Oops, something went wrong.