Skip to content

Commit

Permalink
Adding grunt support and a default task that runs PHPUnit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
r4j4h committed Sep 17, 2014
1 parent 9ccd1c0 commit 1fe2ec1
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
composer.phar
vendor/
node_modules/
26 changes: 26 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
phpunit: {
classes: {
dir: 'tests/'
},
options: {
bin: 'vendor/bin/phpunit',
colors: true,
followOutput: true
}
}
});

grunt.loadNpmTasks('grunt-phpunit');

// Default task(s).
grunt.registerTask('default', ['test']);

// Default task(s).
grunt.registerTask('test', ['phpunit']);

};
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "php-druid-query",
"devDependencies": {
"grunt": "^0.4.5",
"grunt-phpunit": "^0.3.5"
}
}

0 comments on commit 1fe2ec1

Please sign in to comment.