debug
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
d16d6d07d8
commit
16c180d512
|
@ -6,9 +6,9 @@ services:
|
||||||
variables:
|
variables:
|
||||||
MIX_ENV: "test"
|
MIX_ENV: "test"
|
||||||
POSTGRES_DB: eventos_test
|
POSTGRES_DB: eventos_test
|
||||||
POSTGRES_USER: ci
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: test
|
POSTGRES_PASSWORD: ""
|
||||||
|
POSTGRES_HOST: postgres
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
key: "$CI_JOB_NAME"
|
key: "$CI_JOB_NAME"
|
||||||
|
@ -19,7 +19,7 @@ cache:
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install -y postgresql-client
|
- apt-get install -y build-essential postgresql-client git
|
||||||
- mix local.rebar --force
|
- mix local.rebar --force
|
||||||
- mix local.hex --force
|
- mix local.hex --force
|
||||||
- mix deps.get
|
- mix deps.get
|
||||||
|
|
|
@ -15,9 +15,9 @@ 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: System.get_env("POSTGRES_USER"), else: "elixir"),
|
username: System.get_env("POSTGRES_USER") || "elixir",
|
||||||
password: if(System.get_env("CI"), do: System.get_env("POSTGRES_PASSWORD"), else: "elixir"),
|
password: System.get_env("POSTGRES_PASSWORD") || "elixir",
|
||||||
database: "eventos_test",
|
database: "eventos_test",
|
||||||
hostname: if(System.get_env("CI"), do: "postgres", else: "localhost"),
|
hostname: System.get_env("POSTGRES_HOST") || "localhost",
|
||||||
pool: Ecto.Adapters.SQL.Sandbox,
|
pool: Ecto.Adapters.SQL.Sandbox,
|
||||||
types: Eventos.PostgresTypes
|
types: Eventos.PostgresTypes
|
||||||
|
|
Loading…
Reference in a new issue