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

View File

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