Compare commits
2 commits
cafd028008
...
89831a257a
| Author | SHA1 | Date | |
|---|---|---|---|
| 89831a257a | |||
| b434df3968 |
1 changed files with 10 additions and 1 deletions
11
.drone.yml
11
.drone.yml
|
|
@ -14,12 +14,19 @@ trigger:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: compute cache key
|
||||||
|
image: docker.io/library/elixir:1.18.3-otp-27
|
||||||
|
commands:
|
||||||
|
- echo "$DRONE_REPO_OWNER/$DRONE_REPO_NAME/" >> .cache_key
|
||||||
|
|
||||||
- name: restore-cache
|
- name: restore-cache
|
||||||
image: drillster/drone-volume-cache
|
image: drillster/drone-volume-cache
|
||||||
settings:
|
settings:
|
||||||
restore: true
|
restore: true
|
||||||
mount:
|
mount:
|
||||||
- ./deps
|
- ./deps
|
||||||
|
- ./_build
|
||||||
|
ttl: 30
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /tmp/cache
|
path: /tmp/cache
|
||||||
|
|
@ -71,7 +78,9 @@ steps:
|
||||||
# Fetch dependencies
|
# Fetch dependencies
|
||||||
- mix deps.get
|
- mix deps.get
|
||||||
# Run tests
|
# Run tests
|
||||||
- mix test
|
# - mix test
|
||||||
|
# TODO: remove this, added only for testing
|
||||||
|
- mix compile
|
||||||
|
|
||||||
- name: rebuild-cache
|
- name: rebuild-cache
|
||||||
image: drillster/drone-volume-cache
|
image: drillster/drone-volume-cache
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue