From af946f0a31d67656ad937ef7981b3b657c786db9 Mon Sep 17 00:00:00 2001 From: Kirill Kamakin Date: Sat, 13 Nov 2021 18:11:36 +0300 Subject: [PATCH] Change cache rules --- .gitlab-ci.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9710a0a..58b6b1c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,21 +1,18 @@ image: runmymind/docker-android-sdk:ubuntu-standalone before_script: - # Shouldn't be necessary, but just to be sure - - chmod +x ./gradlew # Ask gradle to put everything to .gradle dir so that we can cache it - export GRADLE_USER_HOME=`pwd`/.gradle cache: key: "mealie-android" paths: - - .gradle/wrapper - - .gradle/caches + - .gradle stages: - - lint - - build - - test + - lint + - build + - test lintDebug: interruptible: true @@ -31,7 +28,7 @@ lintDebug: assembleDebug: interruptible: true stage: build - needs: [] + needs: [ ] script: - ./gradlew assembleDebug artifacts: @@ -41,7 +38,7 @@ assembleDebug: debugTests: interruptible: true stage: test - needs: ["assembleDebug"] + needs: [ "assembleDebug" ] script: - ./gradlew testDebug artifacts: