Compare commits
2 commits
b1e6a54e65
...
2978dc443e
| Author | SHA1 | Date | |
|---|---|---|---|
| 2978dc443e | |||
| 3730ba22a5 |
2 changed files with 14 additions and 13 deletions
25
.drone.yml
25
.drone.yml
|
|
@ -70,18 +70,19 @@ steps:
|
||||||
echo "Postgres did not become available, aborting."
|
echo "Postgres did not become available, aborting."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
# - name: test
|
- name: test
|
||||||
# image: docker.io/library/elixir:1.18.3-otp-27
|
image: docker.io/library/elixir:1.18.3-otp-27
|
||||||
# environment:
|
environment:
|
||||||
# MIX_ENV: test
|
MIX_ENV: test
|
||||||
# TEST_POSTGRES_HOST: postgres
|
TEST_POSTGRES_HOST: postgres
|
||||||
# commands:
|
TEST_POSTGRES_PORT: 5432
|
||||||
# # Install hex package manager
|
commands:
|
||||||
# - mix local.hex --force
|
# Install hex package manager
|
||||||
# # Fetch dependencies
|
- mix local.hex --force
|
||||||
# - mix deps.get
|
# Fetch dependencies
|
||||||
# # Run tests
|
- mix deps.get
|
||||||
# - mix test
|
# Run tests
|
||||||
|
- mix test
|
||||||
|
|
||||||
- name: rebuild-cache
|
- name: rebuild-cache
|
||||||
image: drillster/drone-volume-cache
|
image: drillster/drone-volume-cache
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ config :mv, Mv.Repo,
|
||||||
username: "postgres",
|
username: "postgres",
|
||||||
password: "postgres",
|
password: "postgres",
|
||||||
hostname: System.get_env("TEST_POSTGRES_HOST", "localhost"),
|
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")}",
|
database: "mv_test#{System.get_env("MIX_TEST_PARTITION")}",
|
||||||
pool: Ecto.Adapters.SQL.Sandbox,
|
pool: Ecto.Adapters.SQL.Sandbox,
|
||||||
pool_size: System.schedulers_online() * 2
|
pool_size: System.schedulers_online() * 2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue