Skip to content
Snippets Groups Projects
Commit 209c598b authored by nfontrod's avatar nfontrod
Browse files

.gitlab-ci.yml: add sonarqube-check part

parent 6a246c4a
No related branches found
No related tags found
No related merge requests found
Pipeline #124 passed with warnings
...@@ -18,3 +18,24 @@ tests: ...@@ -18,3 +18,24 @@ tests:
- pip install biopython==1.75 - pip install biopython==1.75
script: script:
- coverage run -m unittest discover - coverage run -m unittest discover
sonarqube-check:
image:
name: sonarsource/sonar-scanner-cli:latest
entrypoint: [ "" ]
variables:
SONAR_TOKEN: ae2c1731888a2155e90ea0a1dcec551c8d4336bd
SONAR_HOST_URL: http://localhost:9000/
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:
key: "${CI_JOB_NAME}"
paths:
- .sonar/cache
script:
- sonar-scanner -Dsonar.qualitygate.wait=true
allow_failure: true
only:
- merge_requests
- master
- develop
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment