Add script for cleaning for tests
This commit is contained in:
parent
46bb816a23
commit
f78032495c
18
mix.exs
18
mix.exs
@ -120,9 +120,21 @@ defmodule Mobilizon.Mixfile do
|
|||||||
# See the documentation for `Mix` for more info on aliases.
|
# See the documentation for `Mix` for more info on aliases.
|
||||||
defp aliases do
|
defp aliases do
|
||||||
[
|
[
|
||||||
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
|
"ecto.setup": [
|
||||||
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
"ecto.create",
|
||||||
test: ["ecto.create --quiet", "ecto.migrate", "test"],
|
"ecto.migrate",
|
||||||
|
"run priv/repo/seeds.exs"
|
||||||
|
],
|
||||||
|
"ecto.reset": [
|
||||||
|
"ecto.drop",
|
||||||
|
"ecto.setup"
|
||||||
|
],
|
||||||
|
test: [
|
||||||
|
"ecto.create --quiet",
|
||||||
|
"ecto.migrate",
|
||||||
|
"test",
|
||||||
|
"cmd ./script/clean_after_tests"
|
||||||
|
],
|
||||||
"phx.deps_migrate_serve": [
|
"phx.deps_migrate_serve": [
|
||||||
"deps.get",
|
"deps.get",
|
||||||
"ecto.create --quiet",
|
"ecto.create --quiet",
|
||||||
|
3
script/clean_after_tests
Executable file
3
script/clean_after_tests
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
rm -rf test/uploads
|
Loading…
Reference in New Issue
Block a user