sonar-scanner 2.8 (new formula)
Closes #5111. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
e2a9b0b747
commit
6541fb946e
1 changed files with 22 additions and 0 deletions
22
Formula/sonar-scanner.rb
Normal file
22
Formula/sonar-scanner.rb
Normal file
|
@ -0,0 +1,22 @@
|
|||
class SonarScanner < Formula
|
||||
desc "Launcher to analyze a project with SonarQube"
|
||||
homepage "http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner"
|
||||
url "https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-2.8.zip"
|
||||
sha256 "0295365a7e5d4499ec6b46cb6c70f3fa127159b58b73930f675acd0897a6b350"
|
||||
head "https://github.com/SonarSource/sonar-scanner-cli.git"
|
||||
|
||||
bottle :unneeded
|
||||
|
||||
def install
|
||||
rm_rf Dir["bin/*.bat"]
|
||||
libexec.install Dir["*"]
|
||||
bin.install libexec/"bin/sonar-scanner"
|
||||
etc.install libexec/"conf/sonar-scanner.properties"
|
||||
ln_s etc/"sonar-scanner.properties", libexec/"conf/sonar-scanner.properties"
|
||||
bin.env_script_all_files libexec/"bin/", :SONAR_SCANNER_HOME => libexec
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match version.to_s, shell_output("#{bin}/sonar-scanner --version")
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue