Compare commits
1 commit
2ec534f440
...
509e86b758
| Author | SHA1 | Date | |
|---|---|---|---|
| 509e86b758 |
1 changed files with 8 additions and 5 deletions
13
.drone.yml
13
.drone.yml
|
|
@ -10,9 +10,9 @@ services:
|
||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: restore-cache-with-filesystem
|
- name: restore_cache
|
||||||
# the `plugins` user seems to be owned by the drone organization
|
# the `plugins` user seems to be owned by the drone organization
|
||||||
image: docker.io/library/plugins/cache:1.9
|
image: docker.io/plugins/cache:1.9
|
||||||
pull: true
|
pull: true
|
||||||
settings:
|
settings:
|
||||||
backend: "filesystem"
|
backend: "filesystem"
|
||||||
|
|
@ -28,6 +28,8 @@ steps:
|
||||||
|
|
||||||
- name: check
|
- name: check
|
||||||
image: docker.io/library/elixir:1.18.3-otp-27
|
image: docker.io/library/elixir:1.18.3-otp-27
|
||||||
|
depends_on:
|
||||||
|
- restore_cache
|
||||||
commands:
|
commands:
|
||||||
# Install hex package manager
|
# Install hex package manager
|
||||||
- mix local.hex --force
|
- mix local.hex --force
|
||||||
|
|
@ -46,7 +48,7 @@ steps:
|
||||||
# Provide hints for improving code quality
|
# Provide hints for improving code quality
|
||||||
- mix credo
|
- mix credo
|
||||||
|
|
||||||
- name: wait for postgres
|
- name: wait_for_postgres
|
||||||
image: docker.io/library/postgres:17.2
|
image: docker.io/library/postgres:17.2
|
||||||
commands:
|
commands:
|
||||||
# Wait for postgres to become available
|
# Wait for postgres to become available
|
||||||
|
|
@ -64,11 +66,12 @@ steps:
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: docker.io/library/elixir:1.18.3-otp-27
|
image: docker.io/library/elixir:1.18.3-otp-27
|
||||||
|
depends_on:
|
||||||
|
- restore_cache
|
||||||
|
# - wait_for_postgres
|
||||||
environment:
|
environment:
|
||||||
MIX_ENV: test
|
MIX_ENV: test
|
||||||
TEST_POSTGRES_HOST: postgres
|
TEST_POSTGRES_HOST: postgres
|
||||||
# depends_on:
|
|
||||||
# - 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