diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c837b8b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,23 @@ +language: java +sudo: false +addons: + sonarcloud: + organization: "bentobox-world" + token: + secure: $SONAR_TOKEN +jdk: + - openjdk8 + - openjdk11 + +matrix: + allow_failures: + - jdk: openjdk11 + +script: + # 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_Greenhouses + +cache: + directories: + - '$HOME/.m2/repository' + - '$HOME/.sonar/cache' diff --git a/pom.xml b/pom.xml index 01fb013..c0b16e5 100644 --- a/pom.xml +++ b/pom.xml @@ -104,7 +104,7 @@ org.sonarsource.scanner.maven sonar-maven-plugin - 5.1 + 3.7.0.1746 verify