From: Simon Brandhof Date: Tue, 2 Dec 2014 08:58:47 +0000 (+0100) Subject: Fix disabling of JS tests by Maven X-Git-Tag: 5.0-RC1~115 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=db4c7282d6f6e6b20f7113dd2d584a9300470cc3;p=sonarqube.git Fix disabling of JS tests by Maven --- diff --git a/server/sonar-web/Gruntfile.coffee b/server/sonar-web/Gruntfile.coffee index 404017b9b06..18182116218 100644 --- a/server/sonar-web/Gruntfile.coffee +++ b/server/sonar-web/Gruntfile.coffee @@ -393,15 +393,29 @@ module.exports = (grunt) -> 'requirejs', 'clean:js', 'copy:build', 'copy:requirejs', 'uglify:build', 'clean:build'] - grunt.registerTask 'build', ['clean:css', 'clean:js', - 'less:build', 'cssUrlRewrite:build' - 'coffee:build', 'handlebars:build', 'copy:js', - 'concat:build', - 'requirejs', 'clean:js', 'copy:build', 'copy:requirejs', 'uglify:build', - 'clean:build'] - grunt.registerTask 'test', ['clean:js', 'coffee:build', 'handlebars:build', 'copy:js', 'concat:dev', 'express:test', 'casper:test'] grunt.registerTask 'single', ['clean:js', 'coffee:build', 'handlebars:build', 'copy:js', 'concat:dev', 'express:test', 'casper:single'] + + + # task used by Maven build (see pom.xml). + grunt.registerTask 'maven-build-skip-tests-true', [ + 'clean:css', 'clean:js', + 'less:build', 'cssUrlRewrite:build' + 'coffee:build', 'handlebars:build', 'copy:js', + 'concat:build', + 'requirejs', 'clean:js', 'copy:build', 'copy:requirejs', 'uglify:build', + 'clean:build'] + + grunt.registerTask 'maven-build-skip-tests-false', [ + 'clean:js', 'coffee:build', 'handlebars:build', 'copy:js', 'concat:dev', + 'express:test', 'casper:test', + + 'clean:css', 'clean:js', + 'less:build', 'cssUrlRewrite:build' + 'coffee:build', 'handlebars:build', 'copy:js', + 'concat:build', + 'requirejs', 'clean:js', 'copy:build', 'copy:requirejs', 'uglify:build', + 'clean:build'] diff --git a/server/sonar-web/pom.xml b/server/sonar-web/pom.xml index 4cc8a62f8ad..5aa019599ec 100644 --- a/server/sonar-web/pom.xml +++ b/server/sonar-web/pom.xml @@ -12,8 +12,6 @@ SonarQube :: Web - test build - src/main/js src/main/js/third-party/**/*,src/main/js/require.js,src/main/js/tests/**/* @@ -157,7 +155,7 @@ grunt - ${gruntTask} --port=${jsTestPort} + maven-build-skip-tests-${skipWebTests} --port=${jsTestPort} @@ -187,17 +185,6 @@ - - skipJsTests - - - skipTests - - - - build - - release