Compare commits

...

1 commit

Author SHA1 Message Date
daf268f7da
Fix postgres port in CI
Some checks failed
continuous-integration/drone/push Build is failing
2025-06-18 12:17:53 +02:00
2 changed files with 3 additions and 2 deletions

View file

@ -40,7 +40,7 @@ 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 -U postgres -p 5000; then
exit 0 exit 0
else else
true true
@ -55,6 +55,7 @@ steps:
environment: environment:
MIX_ENV: test MIX_ENV: test
TEST_POSTGRES_HOST: postgres TEST_POSTGRES_HOST: postgres
TEST_POSTGRES_PORT: 5000
commands: commands:
# Install hex package manager # Install hex package manager
- mix local.hex --force - mix local.hex --force

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: 5000, port: System.get_env("TEST_POSTGRES_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