How to install sonar-scanner in Travis CI

Hi,

I would like to know how to install sonar-scanner in Travis CI. I’m using sonarqube. As far as I know there is an sonarCloud add-on in Travis but there is no sonarqube add. I would like to install sonar-scanner cli command line tool from the scratch

I tried the following configuration but I got a sonar-scanner: command not found

I fixed the problem using the follwing travis configuration