Saturday, May 30, 2015

Sonar Qube Installation on Mac using Homebrew

Prerequisites: Installation of Homebrew would be ready
http://brew.sh/

For installation of SonarQube

  1. Java would be installed on your machine. Installation link: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
  2. On terminal window type "brew install sonar". After completion.
  3. On terminal window type "brew install sonar-runner". After completion
  4. On terminal window type "sonar console". This would start sonar server. For checking type http://localhost:9000/
  5. Once done for your Android Projects create the sonar-project.properties file. A dummy sonar-project.properties file is created at https://gist.github.com/jayshildave/7dbe249ebeb9b3599d93. The URL expects you are using a Android Studio project
  6. Now go to the project directory in terminal type the command "sonar-runner" to execute SonarQube for your project
  7. The output would be shown as below:



1 comment:

  1. I think that sonnar-runner was replaced by sonar-scanner
    brew install sonar-scanner

    ReplyDelete