Commit 7c21cc36 authored by Arthur Lutz's avatar Arthur Lutz
Browse files

[.gitlab-ci] add sonarqube step

parent 804e8daf942e
image: python:latest
stages:
- qa
- lint
- tests
- after-tests
......@@ -143,3 +144,21 @@ trigger-readthedocs:
script:
# regarding the " everywhere when there is a '%': yaml is extremly weird when % are involved
- curl -X POST -d "token=${READTHEDOCS_TOKEN}" https://readthedocs.org/api/v2/webhook/cubicweb/33537/ -w "\nhttp code:"\ "%{http_code}\n" -f
sonarqube:
stage: qa
image: sonarsource/sonar-scanner-cli
# WIP
#only:
# - branch/default
script:
- apk add python3 mercurial
- sonar-scanner
--define sonar.scm.revision=${CI_COMMIT_REF_NAME##*/}
--define sonar.projectBaseDir=.
--define sonar.projectVersion=`python3 ./setup.py --version`
--define sonar.scm.provider=hg
--define sonar.projectKey=${CI_PROJECT_PATH_SLUG}
--define sonar.projectName=${CI_PROJECT_TITLE}
--define sonar.links.homepage=${CI_PROJECT_URL}
--define sonar.host.url=${SONAR_URL}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment