add mix format to tests
This commit is contained in:
parent
a72a4b0cbe
commit
f0676a2433
@ -6,17 +6,16 @@ import Config
|
|||||||
# to provide built-in test partitioning in CI environment.
|
# to provide built-in test partitioning in CI environment.
|
||||||
# Run `mix help test` for more information.
|
# Run `mix help test` for more information.
|
||||||
config :lokal, Lokal.Repo,
|
config :lokal, Lokal.Repo,
|
||||||
username: "postgres",
|
url:
|
||||||
password: "postgres",
|
System.get_env("TEST_DATABASE_URL") ||
|
||||||
hostname: "localhost",
|
"ecto://postgres:postgres@localhost/lokal_test#{System.get_env("MIX_TEST_PARTITION")}",
|
||||||
database: "lokal_test#{System.get_env("MIX_TEST_PARTITION")}",
|
|
||||||
pool: Ecto.Adapters.SQL.Sandbox,
|
pool: Ecto.Adapters.SQL.Sandbox,
|
||||||
pool_size: 10
|
pool_size: 10
|
||||||
|
|
||||||
# We don't run a server during test. If one is required,
|
# We don't run a server during test. If one is required,
|
||||||
# you can enable the server option below.
|
# you can enable the server option below.
|
||||||
config :lokal, LokalWeb.Endpoint,
|
config :lokal, LokalWeb.Endpoint,
|
||||||
http: [ip: {0, 0, 0, 1}, port: 4002],
|
http: [ip: {0, 0, 0, 0}, port: 4002],
|
||||||
secret_key_base: "T4DkRImgeMNCcPcTWBCZyKYp3KQ8yyPD33VT4wj6ogbP8fIGUsqmOTNX3clTMrLo",
|
secret_key_base: "T4DkRImgeMNCcPcTWBCZyKYp3KQ8yyPD33VT4wj6ogbP8fIGUsqmOTNX3clTMrLo",
|
||||||
server: false
|
server: false
|
||||||
|
|
||||||
|
7
mix.exs
7
mix.exs
@ -68,7 +68,12 @@ defmodule Lokal.MixProject do
|
|||||||
setup: ["deps.get", "compile", "ecto.setup", "cmd npm install --prefix assets"],
|
setup: ["deps.get", "compile", "ecto.setup", "cmd npm install --prefix assets"],
|
||||||
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
|
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
|
||||||
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
||||||
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
|
test: [
|
||||||
|
"format --check-formatted",
|
||||||
|
"ecto.create --quiet",
|
||||||
|
"ecto.migrate --quiet",
|
||||||
|
"test"
|
||||||
|
]
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user