homebrew-core/Formula/sonar-runner.rb
ilovezfs c620c4b940 sonar-runner 2.7
Closes #4463.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-09-03 01:25:19 -07:00

29 lines
909 B
Ruby

class SonarRunner < Formula
desc "Launcher to analyze a project with SonarQube"
homepage "http://docs.sonarqube.org/display/SONAR/Analyzing+with+SonarQube+Scanner"
url "https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-2.7.zip"
sha256 "cc13c5f68e8443e28fddd899becd1343c2a3880c3aadc94267cdb8280f1c9d63"
head "https://github.com/SonarSource/sonar-runner.git"
bottle :unneeded
def install
# Remove windows files
rm_rf Dir["bin/*.bat"]
libexec.install Dir["*"]
bin.write_exec_script libexec/"bin/sonar-runner"
end
def caveats; <<-EOS.undent
If this is your first install, you should adjust the default configuration:
#{libexec}/conf/sonar-runner.properties
after that you should also add a new enviroment variable:
SONAR_RUNNER_HOME=#{libexec}
EOS
end
test do
system "#{bin}/sonar-runner", "-h"
end
end