Integrating Travis, SonarQube and GitHub

This post is able how I had integrated, and GitHub so it will process pull requests and put them as part of the GitHub commit.


  1. Create tokens for your account in accounts security.
  2. Create a GitHub personal access token with repo access.
  3. Enable Travis CI to build your repository.
  4. Create a .travis.yml file.
  5. Install travis command line tool (best to do this on a Mac or Linux if you have not set up Ruby on Windows)
  6. Add the tokens using travis encrypt
  7. If everything went well you should have the following in your .travis.yml file
  8. Finally commit and push the changes to the .travis.yml file back to github.

A full example and annotated travis.yml is available in