diff --git a/.gitignore b/.gitignore index f70114a68740d2dd19f776fa57a9233498f40a4d..c92a2e40aa4adb721aaf432bc8d902bab746708f 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ src/__pycache__/ .coverage src/gc_content/__pycache__/ tests/files/test_genome.fa.fai +coverage.xml +.scannerwork/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ea70f87855da3618825dd36816ed994731b2be0b..be1ff4e22e70158207b6c009a6e6ff817978a6e7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: diff --git a/sonar-project.properties b/sonar-project.properties index cfeb63143e7397228a63186a74e86b345d54e5fd..415422409ff737dea4534d81a34317d8b8dfe010 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -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