Skip to content
Snippets Groups Projects
Commit 79d12cbb authored by nfontrod's avatar nfontrod
Browse files

modification for sonar to handle coverage

parent 38b3a1ac
No related branches found
No related tags found
No related merge requests found
Pipeline #126 failed
......@@ -6,3 +6,5 @@ src/__pycache__/
.coverage
src/gc_content/__pycache__/
tests/files/test_genome.fa.fai
coverage.xml
.scannerwork/
......@@ -18,6 +18,7 @@ tests:
- pip install biopython==1.75
script:
- coverage run -m unittest discover
- coverage report xml
sonarqube-check:
image:
......@@ -25,7 +26,7 @@ sonarqube-check:
entrypoint: [ "" ]
variables:
SONAR_TOKEN: ae2c1731888a2155e90ea0a1dcec551c8d4336bd
SONAR_HOST_URL: http://192.168.1.58:9000/
SONAR_HOST_URL: http://192.168.1.58:9000/ # You have to not use localhost otherwise it will not work
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
cache:
......
......@@ -10,6 +10,7 @@ sonar.sources=.
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8
#Description of the project
sonar.python.coverage.reportPaths=./coverage.xml
sonar.projectDescription=A tools to visualise bigwig coverage.
#----- Default SonarQube server
#sonar.host.url=http://localhost:9000
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment