From 0a97ee1f6130e231c6354be98946c2a633d6e064 Mon Sep 17 00:00:00 2001
From: Neda Moeini <neda.moeini@geant.org>
Date: Thu, 26 Oct 2023 10:34:53 +0200
Subject: [PATCH] Added SonaQube to the pipeline.

---
 .gitlab-ci.yml   | 7 +++++++
 sonar.properties | 6 ++++++
 2 files changed, 13 insertions(+)
 create mode 100644 sonar.properties

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4aa7c821..417a8f87 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -46,3 +46,10 @@ run-tox-pipeline:
   artifacts:
     paths:
       - htmlcov
+
+  sonarqube-analysis:
+    image: sonarsource/sonar-scanner-cli
+    script:
+      - sonar-scanner
+    only:
+      - develop
diff --git a/sonar.properties b/sonar.properties
new file mode 100644
index 00000000..4933ccde
--- /dev/null
+++ b/sonar.properties
@@ -0,0 +1,6 @@
+sonar.projectKey=gso
+sonar.projectName=GSO
+sonar.projectVersion=0.x
+sonar.sources=gso
+sonar.python.coverage.reportPaths=coverage.xml
+sonar.host.url=https://sonarqube.software.geant.org/
\ No newline at end of file
-- 
GitLab