forked from CaptainFact/captain-fact-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
42 lines (38 loc) · 1.02 KB
/
Copy pathmix.exs
File metadata and controls
42 lines (38 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
defmodule CF.Umbrella.Mixfile do
use Mix.Project
def project do
[
apps_path: "apps",
deps_path: "deps",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
defp deps do
[
# ---- Release ----
{:distillery, "~> 2.0", runtime: false},
# ---- Test and Dev
{:excoveralls, "~> 0.8", only: :test},
{:credo, "~> 1.0.0", only: [:dev, :test], runtime: false},
{:mix_test_watch, "~> 0.6", only: :dev, runtime: false}
]
end
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.migrate", "ecto.seed"],
"ecto.seed": ["run apps/db/priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
end