diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2015-01-08 15:05:27 +0100 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2015-01-08 16:17:17 +0100 |
commit | 1059d5525f1b4d362861077f3a7416c1b62cc49f (patch) | |
tree | a14d871fcc3f67b661f3ae910fea089219ec304a /server | |
parent | a2a67d748030898f6704a9623b932bb11cf8e47e (diff) | |
download | sonarqube-1059d5525f1b4d362861077f3a7416c1b62cc49f.tar.gz sonarqube-1059d5525f1b4d362861077f3a7416c1b62cc49f.zip |
Add default port when --port is not passed to grunt
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/Gruntfile.coffee | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/server/sonar-web/Gruntfile.coffee b/server/sonar-web/Gruntfile.coffee index 3815b01ffce..600c5680e70 100644 --- a/server/sonar-web/Gruntfile.coffee +++ b/server/sonar-web/Gruntfile.coffee @@ -1,5 +1,6 @@ module.exports = (grunt) -> pkg = grunt.file.readJSON('package.json') + expressPort = '<%= grunt.option("port") || 3000 %>' grunt.initConfig pkg: grunt.file.readJSON('package.json') @@ -298,7 +299,7 @@ module.exports = (grunt) -> test: options: script: '<%= pkg.sources %>js/tests/e2e/server.js' - port: '<%= grunt.option("port") %>' + port: expressPort dev: options: background: false @@ -312,21 +313,21 @@ module.exports = (grunt) -> 'no-colors': true 'fail-fast': true concise: true - port: '<%= grunt.option("port") %>' + port: expressPort src: ['<%= pkg.sources %>js/tests/e2e/tests/**/*.js'] single: options: test: true verbose: true 'fail-fast': true - port: '<%= grunt.option("port") %>' + port: expressPort src: ['<%= pkg.sources %>js/tests/e2e/tests/<%= grunt.option("spec") %>-spec.js'] testfile: options: test: true verbose: true 'fail-fast': true - port: '<%= grunt.option("port") %>' + port: expressPort src: ['<%= grunt.option("file") %>'] |