Add DroneCI #1

Open
halfdan wants to merge 6 commits from ci into main
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 4af59ed652 - Show all commits

View File

@ -26,7 +26,7 @@ volumes:
temp: {}
services:
- name: database
- name: postgres
image: postgres:17.2-alpine
environment:
POSTGRES_USER: postgres

View File

@ -29,7 +29,7 @@ config :tradex, Tradex.Mailer, adapter: Swoosh.Adapters.Test
config :tradex, Tradex.Repo,
username: "postgres",
password: "postgres",
hostname: "localhost",
hostname: if(System.get_env("CI") == "true", do: "postgres", else: "localhost"),
database: "tradex_test#{System.get_env("MIX_TEST_PARTITION")}",
pool: Ecto.Adapters.SQL.Sandbox,
# We don't run a server during test. If one is required,