Commit d4caa14f authored by Tom Käsler's avatar Tom Käsler Committed by Tom Käsler

add sonarqube job

parent e851c7f4
......@@ -29,6 +29,19 @@ production:
before_script:
sonar:
stage: test
only:
- master
- staging
- gitlabCI
tags:
- gradle
allow_failure: true
dependencies: []
script:
- gradle sonarqube
build:
stage: build
only:
......@@ -52,6 +65,21 @@ build:
paths:
- build/bundle/
deploy_staging:
stage: deploy
only:
- gitlabCI
tags:
- ssh
dependencies:
- build
script:
- chmod -R a+rX,ug+w "build"
- eval $(ssh-agent -s)
- mkdir ~/.ssh && echo "$STAGING_SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
- ssh-add <(echo "$STAGING_SSH_PRIVATE_KEY")
- scp -r "build/bundle/"* "$STAGING_SSH_URL"
sync_mirror:
stage: deploy
tags:
......
/* This Gradle build script is currently only used for SonarQube Scanner */
plugins {
id "org.sonarqube" version "1.2"
}
group = "de.thm.arsnova"
sonarqube {
properties {
property "sonar.sourceEncoding", "UTF-8"
property "sonar.language", "js"
property "sonar.sources", "./"
property "sonar.host.url", "https://scm.thm.de/sonar/"
}
}
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