mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Add SonarCloud CQ
This commit is contained in:
parent
5de11aec9a
commit
cd389f1202
@ -57,3 +57,25 @@ pylint:
|
|||||||
reports:
|
reports:
|
||||||
codequality: codeclimate.json
|
codequality: codeclimate.json
|
||||||
when: always
|
when: always
|
||||||
|
|
||||||
|
# SonarQube/SonarCloud - Code Climate & QA [https://www.sonarsource.com]
|
||||||
|
sonarcloud-check:
|
||||||
|
stage: lint
|
||||||
|
image:
|
||||||
|
name: sonarsource/sonar-scanner-cli:latest
|
||||||
|
entrypoint: [""]
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
rules:
|
||||||
|
- if: "$CODE_QUALITY_DISABLED"
|
||||||
|
when: never
|
||||||
|
- if: "$CI_COMMIT_TAG || $CI_COMMIT_BRANCH"
|
||||||
|
variables:
|
||||||
|
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
|
||||||
|
12
sonar-project.properties
Normal file
12
sonar-project.properties
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
sonar.projectKey=crafty-controller_crafty-4
|
||||||
|
sonar.organization=crafty-controller
|
||||||
|
|
||||||
|
# This is the name and version displayed in the SonarCloud UI.
|
||||||
|
sonar.projectName=Crafty 4
|
||||||
|
sonar.projectVersion=4.1.3
|
||||||
|
|
||||||
|
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
|
||||||
|
#sonar.sources=.
|
||||||
|
|
||||||
|
# Encoding of the source code. Default is default system encoding
|
||||||
|
#sonar.sourceEncoding=UTF-8
|
Loading…
Reference in New Issue
Block a user