From e6c7ed7e117b1838a0eb89ed1240b48a6b1b2ac4 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Tue, 9 Sep 2014 19:10:25 +0200 Subject: [PATCH] Moved test running to gruntfile --- gruntfile.js | 5 +++++ run-tests.sh | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) delete mode 100755 run-tests.sh diff --git a/gruntfile.js b/gruntfile.js index 96218e07..e7680267 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -40,11 +40,16 @@ module.exports = function(grunt) { }, command: 'php run.php --config <%= phpCheckStyleConfigPath %> --src <%= phpSourcesDir %> --exclude di.php --format console', }, + + tests: { + command: 'phpunit --strict --bootstrap src/AutoLoader.php tests/', + }, }, }); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-shell'); grunt.registerTask('default', ['jshint', 'shell']); + grunt.registerTask('tests', ['shell:tests']); }; diff --git a/run-tests.sh b/run-tests.sh deleted file mode 100755 index ff0959d1..00000000 --- a/run-tests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -phpunit --strict --bootstrap src/AutoLoader.php tests/