Skip to content

Commit

Permalink
Add activation step to directions
Browse files Browse the repository at this point in the history
Add an explicit step about activating your repository on Travis, with a link to the tutorial.
  • Loading branch information
peeter-piegaze-sonarsource authored Feb 1, 2021
1 parent 9c41e18 commit 7845edf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions user/sonarcloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ The default Travis dist
dist: xenial
```
{: data-file=".travis.yml"}
inlcudes Java 11 by default.
includes Java 11 by default.
## Inspecting code with the SonarQube Scanner
Before inspecting your code, you need to:
1. [Create a user authentication token](https://sonarcloud.io/account/security) for your account on SonarCloud.
2. [Encrypt this token](/user/encryption-keys/#usage) `travis encrypt abcdef0123456789` or define `SONAR_TOKEN` in your [Repository Settings](/user/environment-variables/#defining-variables-in-repository-settings)
3. [Find which SonarCloud.io organization](https://sonarcloud.io/account/organizations) you want to push your project on and get its key
4. Create a `sonar-project.properties` file for your project (see the [documentation](http://redirect.sonarsource.com/doc/install-configure-scanner.html)).
1. Make sure that your repository is correctly activated on Travis CI. See [Travis CI Tutorial](https://docs.travis-ci.com/user/tutorial/).
2. [Create a user authentication token](https://sonarcloud.io/account/security) for your account on SonarCloud.
3. [Encrypt this token](/user/encryption-keys/#usage) `travis encrypt abcdef0123456789` or define `SONAR_TOKEN` in your [Repository Settings](/user/environment-variables/#defining-variables-in-repository-settings)
4. [Find which SonarCloud.io organization](https://sonarcloud.io/account/organizations) you want to push your project on and get its key
5. Create a `sonar-project.properties` file for your project (see the [documentation](http://redirect.sonarsource.com/doc/install-configure-scanner.html)).

Then add the following lines to your `.travis.yml` file to trigger the analysis:

Expand Down

0 comments on commit 7845edf

Please sign in to comment.