aboutsummaryrefslogtreecommitdiffstats
path: root/run.sh
diff options
context:
space:
mode:
authorStephane Gamard <stephane.gamard@searchbox.com>2014-05-14 10:38:54 +0200
committerStephane Gamard <stephane.gamard@searchbox.com>2014-05-14 10:38:54 +0200
commitb1e9fe2a542c2172b634f8a908667ece2c570b32 (patch)
tree04d24a071057b7d515b634a7c996bed141cc444e /run.sh
parentdd36727e6ac2a505d5ae6c82772218e2f404bbff (diff)
downloadsonarqube-b1e9fe2a542c2172b634f8a908667ece2c570b32.tar.gz
sonarqube-b1e9fe2a542c2172b634f8a908667ece2c570b32.zip
Added test with JSON assertion in RuleWS
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/run.sh b/run.sh
new file mode 100755
index 00000000000..096e1eac15c
--- /dev/null
+++ b/run.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+if [[ "$OSTYPE" == "darwin"* ]]; then
+ OS='macosx-universal-64'
+else
+ OS='linux-x86-64'
+fi
+
+if ! ls sonar-application/target/sonarqube-*.zip &> /dev/null; then
+ echo 'Sources are not built'
+ ./build.sh
+fi
+
+cd sonar-application/target/
+if ! ls sonarqube-*/bin/$OS/sonar.sh &> /dev/null; then
+ unzip sonarqube-*.zip
+fi
+cd sonarqube-*
+bin/$OS/sonar.sh restart
+echo "sonar.es.http.port=9200" >> conf/sonar.properties
+sleep 1
+tail -100f logs/sonar.log