Commit cfcdcfa9 authored by Arthur Lutz's avatar Arthur Lutz
Browse files

[.gitlab-ci.yml] add sonarqube step

parent c0c19811a853
......@@ -3,6 +3,7 @@ image: node
stages:
- deps
- test
- qa
cache:
paths:
......@@ -30,3 +31,21 @@ CanBuild:
stage: test
script:
- npm run build
sonarqube:
stage: qa
image: sonarsource/sonar-scanner-cli
only:
- branch/default
script:
- apk add mercurial
- npm install -D typescript
- sonar-scanner
--define sonar.scm.revision=${CI_COMMIT_REF_NAME##*/}
--define sonar.projectBaseDir=.
--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