Skip to content

Commit 1fe2ec1

Browse files
committed
Adding grunt support and a default task that runs PHPUnit tests
1 parent 9ccd1c0 commit 1fe2ec1

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
composer.phar
22
vendor/
3+
node_modules/

Gruntfile.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = function(grunt) {
2+
3+
// Project configuration.
4+
grunt.initConfig({
5+
pkg: grunt.file.readJSON('package.json'),
6+
phpunit: {
7+
classes: {
8+
dir: 'tests/'
9+
},
10+
options: {
11+
bin: 'vendor/bin/phpunit',
12+
colors: true,
13+
followOutput: true
14+
}
15+
}
16+
});
17+
18+
grunt.loadNpmTasks('grunt-phpunit');
19+
20+
// Default task(s).
21+
grunt.registerTask('default', ['test']);
22+
23+
// Default task(s).
24+
grunt.registerTask('test', ['phpunit']);
25+
26+
};

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "php-druid-query",
3+
"devDependencies": {
4+
"grunt": "^0.4.5",
5+
"grunt-phpunit": "^0.3.5"
6+
}
7+
}

0 commit comments

Comments
 (0)