diff --git a/.drone.yml b/.drone.yml index d5dc95b..b3d7c16 100644 --- a/.drone.yml +++ b/.drone.yml @@ -70,19 +70,18 @@ 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 - TEST_POSTGRES_PORT: 5432 - 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 + # 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 diff --git a/config/test.exs b/config/test.exs index 01a8ae8..68beeb0 100644 --- a/config/test.exs +++ b/config/test.exs @@ -9,7 +9,7 @@ config :mv, Mv.Repo, username: "postgres", password: "postgres", hostname: System.get_env("TEST_POSTGRES_HOST", "localhost"), - port: System.get_env("TEST_POSTGRES_PORT", "5000"), + port: 5000, database: "mv_test#{System.get_env("MIX_TEST_PARTITION")}", pool: Ecto.Adapters.SQL.Sandbox, pool_size: System.schedulers_online() * 2