From 7cb4a80f11cc087aee23e9070f93eb2dcfff876d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Eppl=C3=A9e?= Date: Wed, 18 Jun 2025 12:13:18 +0200 Subject: [PATCH 1/2] Fix postgres port in CI --- .drone.yml | 1 + config/test.exs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 1dbc9fd..ca154e0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -55,6 +55,7 @@ steps: environment: MIX_ENV: test TEST_POSTGRES_HOST: postgres + TEST_POSTGRES_PORT: 5432 commands: # Install hex package manager - mix local.hex --force diff --git a/config/test.exs b/config/test.exs index 68beeb0..9d6784e 100644 --- a/config/test.exs +++ b/config/test.exs @@ -9,7 +9,7 @@ config :mv, Mv.Repo, username: "postgres", password: "postgres", 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")}", pool: Ecto.Adapters.SQL.Sandbox, pool_size: System.schedulers_online() * 2 From 3730ba22a55c34aafff650ded61e790b69947857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Eppl=C3=A9e?= Date: Wed, 18 Jun 2025 12:13:18 +0200 Subject: [PATCH 2/2] Fix postgres port in CI --- .drone.yml | 1 + config/test.exs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 1dbc9fd..ca154e0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -55,6 +55,7 @@ steps: environment: MIX_ENV: test TEST_POSTGRES_HOST: postgres + TEST_POSTGRES_PORT: 5432 commands: # Install hex package manager - mix local.hex --force diff --git a/config/test.exs b/config/test.exs index 68beeb0..01a8ae8 100644 --- a/config/test.exs +++ b/config/test.exs @@ -9,7 +9,7 @@ config :mv, Mv.Repo, username: "postgres", password: "postgres", 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")}", pool: Ecto.Adapters.SQL.Sandbox, pool_size: System.schedulers_online() * 2