Compare commits
1 commit
2ec534f440
...
6dd95be7a2
| Author | SHA1 | Date | |
|---|---|---|---|
| 6dd95be7a2 |
1 changed files with 4 additions and 20 deletions
24
.drone.yml
24
.drone.yml
|
|
@ -10,22 +10,6 @@ services:
|
||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: restore-cache-with-filesystem
|
|
||||||
# the `plugins` user seems to be owned by the drone organization
|
|
||||||
image: docker.io/library/plugins/cache:1.9
|
|
||||||
pull: true
|
|
||||||
settings:
|
|
||||||
backend: "filesystem"
|
|
||||||
restore: true
|
|
||||||
cache_key: "volume"
|
|
||||||
archive_format: "gzip"
|
|
||||||
# filesystem_cache_root: "/tmp/cache"
|
|
||||||
mount:
|
|
||||||
- "_build"
|
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
path: /tmp/cache
|
|
||||||
|
|
||||||
- name: check
|
- name: check
|
||||||
image: docker.io/library/elixir:1.18.3-otp-27
|
image: docker.io/library/elixir:1.18.3-otp-27
|
||||||
commands:
|
commands:
|
||||||
|
|
@ -52,8 +36,8 @@ steps:
|
||||||
# Wait for postgres to become available
|
# Wait for postgres to become available
|
||||||
- |
|
- |
|
||||||
for i in {1..20}; do
|
for i in {1..20}; do
|
||||||
if pg_isready -h postgres -u postgres; then
|
if pg_isready -h postgres; then
|
||||||
exit 0
|
break
|
||||||
else
|
else
|
||||||
true
|
true
|
||||||
fi
|
fi
|
||||||
|
|
@ -67,8 +51,8 @@ steps:
|
||||||
environment:
|
environment:
|
||||||
MIX_ENV: test
|
MIX_ENV: test
|
||||||
TEST_POSTGRES_HOST: postgres
|
TEST_POSTGRES_HOST: postgres
|
||||||
# depends_on:
|
depends_on:
|
||||||
# - wait for postgres
|
- wait for postgres
|
||||||
commands:
|
commands:
|
||||||
# Install hex package manager
|
# Install hex package manager
|
||||||
- mix local.hex --force
|
- mix local.hex --force
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue