From 1e891b53bc07fe0d9b183469f9e032a20eb5c88c Mon Sep 17 00:00:00 2001 From: Simon Mazenoux <simon.mazenoux@cern.ch> Date: Thu, 8 Aug 2024 17:29:01 +0200 Subject: [PATCH] fully remove sonar --- CI/process_coverage.sh | 8 -------- sonar-project.properties | 17 ----------------- 2 files changed, 25 deletions(-) delete mode 100644 CI/process_coverage.sh delete mode 100644 sonar-project.properties diff --git a/CI/process_coverage.sh b/CI/process_coverage.sh deleted file mode 100644 index a2ad955..0000000 --- a/CI/process_coverage.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -# The modules from lhc-sm-analysis use the lhcsmapi namespace so the package needs to be installed -# before one can run the tests. Therefore, the generated coverage refers to the installed package -# and the paths are unknown to sonar. -# This script fixes the paths in cov.xml file. -sed -i -e 's/\/usr\/local\/lib\/python'${PY_VERSION}'\/site-packages\///g' cov.xml -sed -i -e 's/\.usr\.local\.lib\.python'${PY_VERSION}'\.site-packages\.//g' cov.xml -sed -i -e 's/<source><\/source>/<source>\/builds\/LHCData\/lhc-sm-analysis\/'${CI_PROJECT_NAME}'<\/source>/g' cov.xml \ No newline at end of file diff --git a/sonar-project.properties b/sonar-project.properties deleted file mode 100644 index d969f59..0000000 --- a/sonar-project.properties +++ /dev/null @@ -1,17 +0,0 @@ -# SONAR_TOKEN and SONAR_HOST_URL are defined as CI variables - -# Required metadata -sonar.projectKey=lhc-sm-qh -sonar.projectName=lhc-sm-qh - -# Comma-separated paths to directories with sources (required) -sonar.sources=lhcsmapi -sonar.python.coverage.reportPaths=cov.xml -# Language -sonar.language=py - -# Encoding of the source files -sonar.sourceEncoding=UTF-8 - -# Failing if the quality gate is not passed -sonar.qualitygate.wait=true -- GitLab