Skip to content

Commit

Permalink
Add roman numerals solution
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyWay committed Aug 21, 2014
1 parent 3d9272f commit 1b1bff7
Show file tree
Hide file tree
Showing 8 changed files with 654 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
.idea
node_modules
vendor
25 changes: 25 additions & 0 deletions roman-numerals/Gulpfile.js
@@ -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']);
10 changes: 10 additions & 0 deletions roman-numerals/composer.json
@@ -0,0 +1,10 @@
{
"require": {
"phpspec/phpspec": "~2.0"
},
"autoload": {
"psr-0": {
"": "src"
}
}
}

0 comments on commit 1b1bff7

Please sign in to comment.