Skip to content

Commit

Permalink
Added SonarCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Nov 4, 2019
1 parent ca46b3c commit 62bf2a6
Show file tree
Hide file tree
Showing 2 changed files with 210 additions and 153 deletions.
11 changes: 5 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ language: java
sudo: false
addons:
sonarcloud:
organization: "tastybento-github"
organization: "bentobox-world"
token:
secure: $SONAR_TOKEN
branches:
- develop
- master

jdk:
- openjdk8
- openjdk11
Expand All @@ -17,8 +15,9 @@ matrix:
- jdk: openjdk11

script:
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package -P sonar sonar:sonar -B
- echo "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
# the following command line builds the project, runs the tests with coverage and then execute the SonarCloud analysis
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar -Dsonar.projectKey=BentoBoxWorld_addon-invSwitcher

cache:
directories:
- '$HOME/.m2/repository'
Expand Down

0 comments on commit 62bf2a6

Please sign in to comment.