From b24e76ec6790d3854e50f945b3826b63da05d13b Mon Sep 17 00:00:00 2001 From: tastybento Date: Sun, 3 Nov 2019 18:22:19 -0800 Subject: [PATCH] Added SonarCloud --- .gitignore | 1 + .travis.yml | 24 ++++++++++++++++++++++++ pom.xml | 31 ++++++++++++++++++++++++++++++- 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.gitignore b/.gitignore index e817b41..dad3d96 100644 --- a/.gitignore +++ b/.gitignore @@ -84,3 +84,4 @@ nbdist/ nbactions.xml nb-configuration.xml .nb-gradle/ +/.idea/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..53c0ea8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +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_Limits + +cache: + directories: + - '$HOME/.m2/repository' + - '$HOME/.sonar/cache' diff --git a/pom.xml b/pom.xml index 3ac0214..937765d 100644 --- a/pom.xml +++ b/pom.xml @@ -95,6 +95,30 @@ + + sonar + + https://sonarcloud.io + bentobox-world + + + + + org.sonarsource.scanner.maven + sonar-maven-plugin + 3.6.0.1398 + + + verify + + sonar + + + + + + + @@ -213,9 +237,14 @@ org.jacoco jacoco-maven-plugin - 0.8.1 + 0.8.3 true + + + **/*Names* +