diff --git a/.travis.yml b/.travis.yml index d93a2d1..fb9babb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ addons: organization: "bentobox-world" token: secure: $SONAR_TOKEN + jdk: - openjdk8 - openjdk11 @@ -14,8 +15,9 @@ matrix: - jdk: openjdk11 script: - - mvn clean verify sonar:sonar -Pcoverage -Dsonar.projectKey=BentoBoxWorld_Level - - 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' diff --git a/pom.xml b/pom.xml index af9cc91..3054232 100644 --- a/pom.xml +++ b/pom.xml @@ -119,7 +119,6 @@ org.sonarsource.scanner.maven sonar-maven-plugin - 3.6.0.1398