use local volumes

Add local volumes for caching gradle and android.
This should solve #16.
This commit is contained in:
Raffaele Mignone 2019-11-28 14:55:08 +01:00
parent 3344ea7400
commit 50542be113
Signed by: norangebit
GPG Key ID: F5255658CB220573
1 changed files with 15 additions and 0 deletions

View File

@ -5,6 +5,11 @@ name: default
steps:
- name: build
image: nextcloudci/android:android-49
volumes:
- name: gradle
path: /root/.gradle
- name: android
path: /opt/android-sdk-linux
commands:
- ./gradlew build
@ -22,3 +27,13 @@ steps:
when:
status:
- failure
volumes:
- name: gradle
host:
path:
from_secret: volume_gradle
- name: android
host:
path:
from_secret: volume_android