Skip to content
Snippets Groups Projects
Commit 91185887 authored by Niklas Schrötler's avatar Niklas Schrötler
Browse files

Added SonarQube Quality Testing

I will hate myself for this
parent 7a8184cf
No related branches found
No related tags found
No related merge requests found
image: alpine:latest
pages:
stage: deploy
script:
- mkdir public
- mv js public/js
- mv css public/css
- mv panels public/panels
- mv config public/config
- mv index.html public/index.html
- mv favicon.png public/favicon.png
artifacts:
sonarqube-check:
image:
name: sonarsource/sonar-scanner-cli:latest
entrypoint: [""]
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:
- public/
only:
- master
- .sonar/cache
script:
- sonar-scanner
allow_failure: true
rules:
- if: $CI_COMMIT_BRANCH == 'master'
#pages:
# stage: deploy
# script:
# - mkdir public
# - mv js public/js
# - mv css public/css
# - mv panels public/panels
# - mv config public/config
# - mv index.html public/index.html
# - mv favicon.png public/favicon.png
# artifacts:
# paths:
# - public/
# only:
# - master
sonar.projectKey=Fachschaft-Informatik-Infoscreen
sonar.qualitygate.wait=true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment