diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d6dc72eb1980455426aa892d82dc44a0c09105f6..2b3d3d4681bb727ba93535a691a0f66166703004 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,7 +18,11 @@ build-job:
script:
- chmod +x ./settings.sh
- ./settings.sh
- - mvn clean deploy
+ - mvn clean jacoco:prepare-agent test jacoco:report install sonar:sonar deploy
+ -Dsonar.projectKey=tpariney-robot-modules
+ -Dsonar.projectName=tpariney-robot-modules
+ -Dsonar.host.url=https://disc.univ-fcomte.fr/cr700-sonarqube
+ -Dsonar.token=$SONAR_TOKEN
tags:
- avm_groupe1
rules:
diff --git a/pom.xml b/pom.xml
index 4530f36abdea14e9112304605be67836965aaad9..040dba41992aa88b35535203a4f8c342aa41bcc7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,6 +14,11 @@
test
+
+
+ ${project.basedir}/target/site/jacoco/jacoco.xml
+
+
nexus-deptinfo
@@ -24,6 +29,22 @@
https://disc.univ-fcomte.fr/cr700-nexus/repository/maven-snapshots/
+
+
+
+
+ org.sonarsource.scanner.maven
+ sonar-maven-plugin
+ 3.9.0.2155
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.7
+
+
+
+
robot
battery