From 16c180d5125d21b5b524b828294e6de695419649 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 14 Jan 2018 00:21:20 +0100 Subject: [PATCH] debug Signed-off-by: Thomas Citharel --- .gitlab-ci.yml | 8 ++++---- config/test.exs | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9b64c8315..9e96311ac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,9 +6,9 @@ services: variables: MIX_ENV: "test" POSTGRES_DB: eventos_test - POSTGRES_USER: ci - POSTGRES_PASSWORD: test - + POSTGRES_USER: postgres + POSTGRES_PASSWORD: "" + POSTGRES_HOST: postgres cache: key: "$CI_JOB_NAME" @@ -19,7 +19,7 @@ cache: before_script: - apt-get update - - apt-get install -y postgresql-client + - apt-get install -y build-essential postgresql-client git - mix local.rebar --force - mix local.hex --force - mix deps.get diff --git a/config/test.exs b/config/test.exs index ce69acbdb..434c30d02 100644 --- a/config/test.exs +++ b/config/test.exs @@ -15,9 +15,9 @@ config :logger, # Configure your database config :eventos, Eventos.Repo, adapter: Ecto.Adapters.Postgres, - username: if(System.get_env("CI"), do: System.get_env("POSTGRES_USER"), else: "elixir"), - password: if(System.get_env("CI"), do: System.get_env("POSTGRES_PASSWORD"), else: "elixir"), + username: System.get_env("POSTGRES_USER") || "elixir", + password: System.get_env("POSTGRES_PASSWORD") || "elixir", 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, types: Eventos.PostgresTypes