Change cache rules

This commit is contained in:
Kirill Kamakin
2021-11-13 18:11:36 +03:00
parent eb75500d2d
commit af946f0a31

View File

@@ -1,21 +1,18 @@
image: runmymind/docker-android-sdk:ubuntu-standalone image: runmymind/docker-android-sdk:ubuntu-standalone
before_script: 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 # Ask gradle to put everything to .gradle dir so that we can cache it
- export GRADLE_USER_HOME=`pwd`/.gradle - export GRADLE_USER_HOME=`pwd`/.gradle
cache: cache:
key: "mealie-android" key: "mealie-android"
paths: paths:
- .gradle/wrapper - .gradle
- .gradle/caches
stages: stages:
- lint - lint
- build - build
- test - test
lintDebug: lintDebug:
interruptible: true interruptible: true
@@ -31,7 +28,7 @@ lintDebug:
assembleDebug: assembleDebug:
interruptible: true interruptible: true
stage: build stage: build
needs: [] needs: [ ]
script: script:
- ./gradlew assembleDebug - ./gradlew assembleDebug
artifacts: artifacts:
@@ -41,7 +38,7 @@ assembleDebug:
debugTests: debugTests:
interruptible: true interruptible: true
stage: test stage: test
needs: ["assembleDebug"] needs: [ "assembleDebug" ]
script: script:
- ./gradlew testDebug - ./gradlew testDebug
artifacts: artifacts: