aboutsummaryrefslogtreecommitdiffstats
path: root/fork.sh
blob: 5633fd10f761a94f823a65d715662bf7643d8478 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

mvn clean install -DskipTests -Denforcer.skip=true -pl :sonar-search,:sonar-process -amd

if [[ "$OSTYPE" == "darwin"* ]]; then
  OS='macosx-universal-64'
else
  OS='linux-x86-64'
fi

cd sonar-application/target/
if ! ls sonarqube-*/bin/$OS/sonar.sh &> /dev/null; then
  unzip sonarqube-*.zip
fi

cd sonarqube-*
touch logs/application.log
touch logs/search.log
touch logs/sonar.log

#tmux new-session "tmux split-window -v 'tail -f logs/sonar.log'; tmux split-window -h 'tail -f logs/search.log'; java -jar lib/sonar-application*.jar"

tmux new-session "tmux split-window -v 'tail -f logs/sonar.log'; tmux split-window -h 'tail -f logs/search.log'; tail -f logs/application.log"