Compare commits

..

2 commits

Author SHA1 Message Date
2978dc443e
Add CI cache
Some checks reported errors
continuous-integration/drone/push Build was killed
2025-06-18 13:46:12 +02:00
3730ba22a5
Fix postgres port in CI
All checks were successful
continuous-integration/drone/push Build is passing
2025-06-18 13:33:22 +02:00
2 changed files with 14 additions and 13 deletions

View file

@ -70,18 +70,19 @@ steps:
echo "Postgres did not become available, aborting."
exit 1
# - name: test
# image: docker.io/library/elixir:1.18.3-otp-27
# environment:
# MIX_ENV: test
# TEST_POSTGRES_HOST: postgres
# commands:
# # Install hex package manager
# - mix local.hex --force
# # Fetch dependencies
# - mix deps.get
# # Run tests
# - mix test
- name: test
image: docker.io/library/elixir:1.18.3-otp-27
environment:
MIX_ENV: test
TEST_POSTGRES_HOST: postgres
TEST_POSTGRES_PORT: 5432
commands:
# Install hex package manager
- mix local.hex --force
# Fetch dependencies
- mix deps.get
# Run tests
- mix test
- name: rebuild-cache
image: drillster/drone-volume-cache

View file

@ -9,7 +9,7 @@ config :mv, Mv.Repo,
username: "postgres",
password: "postgres",
hostname: System.get_env("TEST_POSTGRES_HOST", "localhost"),
port: 5000,
port: System.get_env("TEST_POSTGRES_PORT", "5000"),
database: "mv_test#{System.get_env("MIX_TEST_PARTITION")}",
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: System.schedulers_online() * 2