forked from potsda.mn/mobilizon
use own pg config
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
8fbf8563f3
commit
a9fe91fc23
|
@ -5,6 +5,10 @@ services:
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
MIX_ENV: "test"
|
MIX_ENV: "test"
|
||||||
|
POSTGRES_DB: eventos_test
|
||||||
|
POSTGRES_USER: ci
|
||||||
|
POSTGRES_PASSWORD: test
|
||||||
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
key: "$CI_JOB_NAME"
|
key: "$CI_JOB_NAME"
|
||||||
|
|
|
@ -15,8 +15,8 @@ config :logger,
|
||||||
# Configure your database
|
# Configure your database
|
||||||
config :eventos, Eventos.Repo,
|
config :eventos, Eventos.Repo,
|
||||||
adapter: Ecto.Adapters.Postgres,
|
adapter: Ecto.Adapters.Postgres,
|
||||||
username: if(System.get_env("CI"), do: "postgres", else: "elixir"),
|
username: if(System.get_env("CI"), do: System.get_env("POSTGRES_USER"), else: "elixir"),
|
||||||
password: if(System.get_env("CI"), do: "", else: "elixir"),
|
password: if(System.get_env("CI"), do: System.get_env("POSTGRES_PASSWORD"), else: "elixir"),
|
||||||
database: "eventos_test",
|
database: "eventos_test",
|
||||||
hostname: if(System.get_env("CI"), do: "postgres", else: "localhost"),
|
hostname: if(System.get_env("CI"), do: "postgres", else: "localhost"),
|
||||||
pool: Ecto.Adapters.SQL.Sandbox,
|
pool: Ecto.Adapters.SQL.Sandbox,
|
||||||
|
|
Loading…
Reference in a new issue