From d862bfba4f8a5a432ef07143b8dc8db98f6bbbf4 Mon Sep 17 00:00:00 2001 From: aminecmi Date: Sun, 30 Oct 2022 21:38:04 +0100 Subject: [PATCH] Still cleaning. --- .drone.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index b49d4d5..f127db4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,16 +6,19 @@ steps: - name: AnylyseBuildTest image: mingc/android-build-box:latest commands: + - echo "---------------------------------------------------------" + - echo "Configure gradle..." + - mkdir -p ~/.gradle && echo "org.gradle.daemon=false\nignoreGitVersion=true\nappLoginUrl=\"URL\"\nappLoginUsername=\"LOGIN\"\nappLoginPassword=\"PASS\"\npushCache=false" >> ~/.gradle/gradle.properties - echo "---------------------------------------------------------" - echo "Analysing..." - - ./gradlew sonarqube --no-daemon -Dsonar.projectKey=RFS2 -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN -PignoreGitVersion=true -P appLoginUrl="\"URL\"" -P appLoginUsername="\"LOGIN\"" -P appLoginPassword="\"PASS\"" + - ./gradlew sonarqube -Dsonar.projectKey=RFS2 -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN - echo "---------------------------------------------------------" - echo "Building..." - - ./gradlew build --no-daemon -PignoreGitVersion=true -P appLoginUrl="\"URL\"" -P appLoginUsername="\"LOGIN\"" -P appLoginPassword="\"PASS\"" -P pushCache=false + - ./gradlew build - echo "---------------------------------------------------------" - echo "Testing..." - echo "---------------------------------------------------------" - - ./gradlew test --no-daemon -PignoreGitVersion=true -P appLoginUrl="\"URL\"" -P appLoginUsername="\"LOGIN\"" -P appLoginPassword="\"PASS\"" -P pushCache=false + - ./gradlew test environment: SONAR_HOST_URL: from_secret: sonarScannerHostUrl @@ -85,8 +88,12 @@ steps: - name: build image: mingc/android-build-box:latest commands: + - echo "---------------------------------------------------------" + - echo "Configure gradle..." + - mkdir -p ~/.gradle && echo "org.gradle.daemon=false\nignoreGitVersion=true\nappLoginUrl=\"URL\"\nappLoginUsername=\"LOGIN\"\nappLoginPassword=\"PASS\"\npushCache=false" >> ~/.gradle/gradle.properties + - echo "---------------------------------------------------------" - echo "Generate APK" - - ./gradlew :androidApp:assembleGithubConfigRelease --no-daemon -PignoreGitVersion=true -P appLoginUrl="\"URL\"" -P appLoginUsername="\"LOGIN\"" -P appLoginPassword="\"PASS\"" -P pushCache=false + - ./gradlew :androidApp:assembleGithubConfigRelease -P pushCache=false - echo "---------------------------------------------------------" - echo "Get Key" - wget https://amine-louveau.fr/key