Skip to content
Snippets Groups Projects
Commit 03f3e5ec authored by Robin Oppermann's avatar Robin Oppermann
Browse files

Remove execution of tests when executing sonarqube

parent bee7b05f
No related branches found
No related tags found
1 merge request!3Ci setup
Pipeline #
......@@ -27,7 +27,7 @@ sonarqube:
variables:
GIT_STRATEGY: clone
script:
- ./gradlew sonarqube -Dsonar.projectVersion=$CI_BUILD_REF
- ./gradlew sonarqube -Dsonar.projectVersion=$CI_BUILD_REF -x test
sonarqube_manual:
stage: analyze
......@@ -35,14 +35,14 @@ sonarqube_manual:
variables:
GIT_STRATEGY: clone
script:
- ./gradlew sonarqube -Dsonar.branch=$CI_BUILD_REF_NAME -Dsonar.projectVersion=$CI_BUILD_REF -Dsonar.profile=ANDI_Simulator
- ./gradlew sonarqube -Dsonar.branch=$CI_BUILD_REF_NAME -Dsonar.projectVersion=$CI_BUILD_REF -Dsonar.profile=ANDI_Simulator -x test
sonarqube_preview:
stage: analyze
variables:
GIT_STRATEGY: clone
script:
- ./gradlew sonarqube -Dsonar.analysis.mode=preview -Dsonar.gitlab.project_id=$CI_PROJECT_ID -Dsonar.issuesReport.console.enable=true -Dsonar.gitlab.commit_sha=$CI_BUILD_REF -Dsonar.gitlab.ref=$CI_BUILD_REF_NAME
- ./gradlew sonarqube -Dsonar.analysis.mode=preview -Dsonar.gitlab.project_id=$CI_PROJECT_ID -Dsonar.issuesReport.console.enable=true -Dsonar.gitlab.commit_sha=$CI_BUILD_REF -Dsonar.gitlab.ref=$CI_BUILD_REF_NAME -x test
allow_failure: true
......
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
jcenter()
}
dependencies {
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.2.1"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id "org.sonarqube" version "2.2.1"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment