-
Notifications
You must be signed in to change notification settings - Fork 77
/
mix.exs
62 lines (55 loc) · 1.29 KB
/
mix.exs
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
defmodule Mox.MixProject do
use Mix.Project
@version "1.2.0"
def project do
[
app: :mox,
version: @version,
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
name: "Mox",
description: "Mocks and explicit contracts for Elixir",
deps: deps(),
docs: docs(),
package: package(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
def application do
[
extra_applications: [:logger],
mod: {Mox.Application, []}
]
end
defp elixirc_paths(:test), do: ["test/support", "lib"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:nimble_ownership, "~> 1.0"},
{:castore, "~> 1.0", only: :test},
{:ex_doc, "~> 0.16", only: :docs},
{:excoveralls, "~> 0.18", only: :test}
]
end
defp docs do
[
main: "Mox",
source_ref: "v#{@version}",
source_url: "https://github.com/dashbitco/mox"
]
end
defp package do
%{
licenses: ["Apache-2.0"],
maintainers: ["José Valim"],
links: %{"GitHub" => "https://github.com/dashbitco/mox"}
}
end
end