Add sonar scanner

This commit is contained in:
Ivaylo Ivanov 2019-09-29 18:16:56 +02:00
parent 2206728fa6
commit 9ba7cb69cc
2 changed files with 25 additions and 0 deletions

9
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,9 @@
---
stages:
- scan
sonar_scan:
stage: scan
image: registry.ivayloivanov.eu/infstrct/dockerfiles/amd64/sonar-scanner-base
script:
- $HOME/sonar-scanner/bin/sonar-scanner -Dsonar.login=$SONAR_TOKEN

16
sonar-project.properties Normal file
View File

@ -0,0 +1,16 @@
#----- Default SonarQube server
sonar.host.url=http://192.168.3.2:9000
# must be unique in a given SonarQube instance
sonar.projectKey=tuwien:unix
# defaults to project key
sonar.projectName=tuwien:unix
# defaults to 'not provided'
sonar.projectVersion=1.0.0
# Path is relative to the sonar-project.properties file. Defaults to .
sonar.sources=.
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8