This commit is contained in:
aminecmi 2022-07-23 22:28:06 +02:00
parent a3253d5a7b
commit 096344241d
2 changed files with 28 additions and 1 deletions

22
.drone.yaml Normal file
View File

@ -0,0 +1,22 @@
kind: pipeline
type: docker
steps:
- name: code-analysis
image: sonarsource/sonar-scanner-cli
detach: true
failure: ignore
commands:
- ls -la
- ./gradlew sonarqube -Dsonar.projectKey=RFS2 -Dsonar.sources=. -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN
environment:
SONAR_HOST_URL:
from_secret: sonarScannerHostUrl
SONAR_LOGIN:
from_secret: sonarScannerLogin
- name: build
image: mingc/android-build-box:latest
commands:
- ./gradlew build

View File

@ -6,10 +6,15 @@ buildscript {
} }
dependencies { dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10")
classpath("com.android.tools.build:gradle:7.2.0") classpath("com.android.tools.build:gradle:7.2.1")
// sonarquve
classpath("org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.4.0.2513")
} }
} }
apply(plugin = "org.sonarqube")
allprojects { allprojects {
repositories { repositories {
google() google()