From c9f46e2e3caa20d597315cd2fa85b0cce15c4c3b Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 6 Nov 2014 10:17:47 +0100 Subject: run integration tests on travis --- js/Gruntfile.js | 43 +++++++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 14 deletions(-) (limited to 'js') diff --git a/js/Gruntfile.js b/js/Gruntfile.js index 133cf0303..e7d7398cc 100644 --- a/js/Gruntfile.js +++ b/js/Gruntfile.js @@ -152,7 +152,7 @@ module.exports = function (grunt) { files: [ '../**/*.php' ], - tasks: ['phpunit'] + tasks: ['phpunit:unit'] } }, karma: { @@ -167,13 +167,25 @@ module.exports = function (grunt) { } }, phpunit: { - classes: { - dir: '../tests' + unit: { + options: { + colors: true, + configuration: '../phpunit.xml' + } + }, + coverageUnit: { + options: { + colors: true, + configuration: '../phpunit.xml', + coverageClover: '../coverage.clover' + } + }, + integration: { + options: { + colors: true, + configuration: '../phpunit.integration.xml' + } }, - options: { - colors: true, - configuration: '../phpunit.xml' - } }, /* jshint camelcase: false */ protractor_webdriver: { @@ -211,11 +223,14 @@ module.exports = function (grunt) { grunt.registerTask('default', ['jshint', 'concat', 'wrap', 'ngAnnotate', 'uglify', 'cssmin']); grunt.registerTask('dev', ['watch:concat']); - grunt.registerTask('unit-js', ['karma:unit']); - grunt.registerTask('unit-php', ['watch:phpunit']); - grunt.registerTask('e2e', ['protractor_webdriver', 'connect', - 'protractor']); - grunt.registerTask('ci-unit', ['default', 'karma:continuous']); - grunt.registerTask('ci-e2e', ['protractor_webdriver', 'connect', - 'protractor']); + grunt.registerTask('dev-js-unit', ['karma:unit']); + grunt.registerTask('dev-php-unit', ['watch:phpunit']); + + grunt.registerTask('js-unit', ['default', 'karma:continuous']); + grunt.registerTask('php-unit', ['phpunit:coverageUnit']); + grunt.registerTask('php-integration', ['phpunit:integration']); + + grunt.registerTask('acceptance', ['protractor_webdriver', 'connect', + 'protractor']); + }; \ No newline at end of file -- cgit v1.2.3