Enable Drone CI cache (#424)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
## What changes were proposed in this pull request? Enable Drone CI cache. ## How was this patch tested? CI/CD. Reviewed-on: #424 Co-authored-by: Amab <juanmi1982@gmail.com> Co-committed-by: Amab <juanmi1982@gmail.com>
This commit is contained in:
parent
caad081edb
commit
a3beeeebef
30
.drone.yml
30
.drone.yml
|
@ -1,7 +1,19 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: restore-cache
|
||||||
|
image: drillster/drone-volume-cache
|
||||||
|
settings:
|
||||||
|
restore: true
|
||||||
|
mount:
|
||||||
|
- .gradle/caches
|
||||||
|
- .gradle/wrapper
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /cache
|
||||||
|
|
||||||
- name: fetch-tags
|
- name: fetch-tags
|
||||||
image: drone/git:latest
|
image: drone/git:latest
|
||||||
commands:
|
commands:
|
||||||
|
@ -10,6 +22,8 @@ steps:
|
||||||
- name: build & test
|
- name: build & test
|
||||||
image: git.cuernodehipnos.es/marown/android-sdk-docker:latest
|
image: git.cuernodehipnos.es/marown/android-sdk-docker:latest
|
||||||
privileged: true
|
privileged: true
|
||||||
|
environment:
|
||||||
|
GRADLE_USER_HOME: /drone/src/.gradle
|
||||||
commands:
|
commands:
|
||||||
# Create and run emulator
|
# Create and run emulator
|
||||||
- echo "no" | avdmanager --verbose create avd --force --name "generic_34" --package "system-images;android-34;google_apis;x86_64" --tag "google_apis" --abi "x86_64"
|
- echo "no" | avdmanager --verbose create avd --force --name "generic_34" --package "system-images;android-34;google_apis;x86_64" --tag "google_apis" --abi "x86_64"
|
||||||
|
@ -26,3 +40,19 @@ steps:
|
||||||
# from_secret: sonar_host
|
# from_secret: sonar_host
|
||||||
# sonar_token:
|
# sonar_token:
|
||||||
# from_secret: sonar_token
|
# from_secret: sonar_token
|
||||||
|
|
||||||
|
- name: rebuild-cache
|
||||||
|
image: drillster/drone-volume-cache
|
||||||
|
settings:
|
||||||
|
rebuild: true
|
||||||
|
mount:
|
||||||
|
- .gradle/caches
|
||||||
|
- .gradle/wrapper
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /cache
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
host:
|
||||||
|
path: /share/CACHEDEV1_DATA/homes/admin/drone/cache
|
||||||
|
|
Loading…
Reference in New Issue
Block a user