summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-11-06 10:17:47 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-11-06 10:17:47 +0100
commitc9f46e2e3caa20d597315cd2fa85b0cce15c4c3b (patch)
tree14322825c7bb192bfc1b9c63330f30edfb20125b /js
parent6ab04993f880e37e0bd53ebdd28045508f2593b2 (diff)
run integration tests on travis
Diffstat (limited to 'js')
-rw-r--r--js/Gruntfile.js43
1 files changed, 29 insertions, 14 deletions
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