Compare commits

..

1 commit

Author SHA1 Message Date
b1e6a54e65
Add CI cache
All checks were successful
continuous-integration/drone/push Build is passing
2025-06-18 13:38:15 +02:00
2 changed files with 13 additions and 14 deletions

View file

@ -70,19 +70,18 @@ steps:
echo "Postgres did not become available, aborting." echo "Postgres did not become available, aborting."
exit 1 exit 1
- name: test # - name: test
image: docker.io/library/elixir:1.18.3-otp-27 # image: docker.io/library/elixir:1.18.3-otp-27
environment: # environment:
MIX_ENV: test # MIX_ENV: test
TEST_POSTGRES_HOST: postgres # TEST_POSTGRES_HOST: postgres
TEST_POSTGRES_PORT: 5432 # commands:
commands: # # Install hex package manager
# Install hex package manager # - mix local.hex --force
- mix local.hex --force # # Fetch dependencies
# Fetch dependencies # - mix deps.get
- mix deps.get # # Run tests
# Run tests # - mix test
- mix test
- name: rebuild-cache - name: rebuild-cache
image: drillster/drone-volume-cache image: drillster/drone-volume-cache

View file

@ -9,7 +9,7 @@ config :mv, Mv.Repo,
username: "postgres", username: "postgres",
password: "postgres", password: "postgres",
hostname: System.get_env("TEST_POSTGRES_HOST", "localhost"), hostname: System.get_env("TEST_POSTGRES_HOST", "localhost"),
port: System.get_env("TEST_POSTGRES_PORT", "5000"), port: 5000,
database: "mv_test#{System.get_env("MIX_TEST_PARTITION")}", database: "mv_test#{System.get_env("MIX_TEST_PARTITION")}",
pool: Ecto.Adapters.SQL.Sandbox, pool: Ecto.Adapters.SQL.Sandbox,
pool_size: System.schedulers_online() * 2 pool_size: System.schedulers_online() * 2