2017-12-08 08:58:14 +00:00
|
|
|
use Mix.Config
|
|
|
|
|
|
|
|
# We don't run a server during test. If one is required,
|
|
|
|
# you can enable the server option below.
|
|
|
|
config :eventos, EventosWeb.Endpoint,
|
|
|
|
http: [port: 4001],
|
|
|
|
server: false
|
|
|
|
|
|
|
|
# Print only warnings and errors during test
|
2018-01-13 22:33:03 +00:00
|
|
|
config :logger,
|
|
|
|
backends: [:console],
|
|
|
|
compile_time_purge_level: :debug,
|
|
|
|
level: :info
|
2017-12-08 08:58:14 +00:00
|
|
|
|
|
|
|
# Configure your database
|
|
|
|
config :eventos, Eventos.Repo,
|
|
|
|
adapter: Ecto.Adapters.Postgres,
|
2018-01-13 22:40:06 +00:00
|
|
|
username: if(System.get_env("CI"), do: "postgres", else: "elixir"),
|
|
|
|
password: if(System.get_env("CI"), do: "", else: "elixir"),
|
2017-12-08 08:58:14 +00:00
|
|
|
database: "eventos_test",
|
2018-01-13 22:40:06 +00:00
|
|
|
hostname: if(System.get_env("CI"), do: "postgres", else: "localhost"),
|
2018-01-13 22:33:03 +00:00
|
|
|
pool: Ecto.Adapters.SQL.Sandbox,
|
|
|
|
types: Eventos.PostgresTypes
|