forked from potsda.mn/mobilizon
Add script for cleaning for tests
This commit is contained in:
parent
fa037fd683
commit
2e2dcc8208
18
mix.exs
18
mix.exs
|
@ -120,9 +120,21 @@ defmodule Mobilizon.Mixfile do
|
|||
# See the documentation for `Mix` for more info on aliases.
|
||||
defp aliases do
|
||||
[
|
||||
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
|
||||
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
||||
test: ["ecto.create --quiet", "ecto.migrate", "test"],
|
||||
"ecto.setup": [
|
||||
"ecto.create",
|
||||
"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": [
|
||||
"deps.get",
|
||||
"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 a new issue