From 973302228976ab963cdba631145c7bcf7ce62778 Mon Sep 17 00:00:00 2001 From: aminecmi Date: Fri, 6 Oct 2023 21:12:47 +0200 Subject: [PATCH] WIP --- .drone.yml | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/.drone.yml b/.drone.yml index c21cbda..51ede7d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,19 @@ type: docker name: test steps: + - name: Lint + failure: ignore + detach: true + image: ubuntu:latest + commands: + - apt-get update && apt-get install -y git curl + - echo "---------------------------------------------------------" + - echo "Install linter..." + - curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.0.0/ktlint && chmod a+x ktlint && mv ktlint /usr/local/bin/ + - echo "---------------------------------------------------------" + - echo "Linting..." + - ktlint + - echo "---------------------------------------------------------" - name: BuildAndTest image: mingc/android-build-box:latest commands: @@ -10,28 +23,9 @@ steps: - 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 "Building and testing..." + - ./gradlew build - echo "---------------------------------------------------------" - - echo "Testing..." - - 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