From 5f569c2ea9b324bf0b4c4d56872cfc018dbe42b9 Mon Sep 17 00:00:00 2001 From: aminecmi Date: Fri, 6 Oct 2023 21:12:47 +0200 Subject: [PATCH] WIP --- .drone.yml | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/.drone.yml b/.drone.yml index c21cbda..e7120eb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,32 +6,20 @@ steps: - name: BuildAndTest image: mingc/android-build-box:latest commands: + - echo "---------------------------------------------------------" + - echo "Install linter..." + - curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.0.0/ktlint && chmod a+x ktlint && sudo mv ktlint /usr/local/bin/ - echo "---------------------------------------------------------" - echo "Configure gradle..." - mkdir -p ~/.gradle && echo "org.gradle.daemon=false\nignoreGitVersion=true\npushCache=false\nsystemProp.org.gradle.internal.http.connectionTimeout=180000\nsystemProp.org.gradle.internal.http.socketTimeout=180000" >> ~/.gradle/gradle.properties - echo "---------------------------------------------------------" - - echo "Building..." - - ./gradlew build -x test + - echo "Linting..." + - ktlint - echo "---------------------------------------------------------" - - echo "Testing..." + - echo "Building and testing..." + - ./gradlew build - echo "---------------------------------------------------------" - ./gradlew koverMergedXmlReport - environment: - TZ: Europe/Paris - SONAR_HOST_URL: - from_secret: sonarScannerHostUrl - SONAR_LOGIN: - from_secret: sonarScannerLogin - - name: Analyse - image: kytay/sonar-node-plugin - settings: - sonar_host: - from_secret: sonarScannerHostUrl - sonar_token: - from_secret: sonarScannerLogin - use_node_version: 16.18.1 - sonar_debug: true - sonar_project_settings: ./sonar-project.properties trigger: event: - push