-
Notifications
You must be signed in to change notification settings - Fork 10
/
mix.exs
70 lines (63 loc) · 1.65 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
63
64
65
66
67
68
69
70
defmodule Mockery.Mixfile do
use Mix.Project
@version "2.3.3"
def project do
[
app: :mockery,
deps: deps(),
description: description(),
dialyzer: [
flags: [
:error_handling,
:race_conditions,
:underspecs,
:unmatched_returns
],
plt_add_apps: [:ex_unit, :mix]
],
docs: [
extras: ["README.md", "EXAMPLES.md", "CHANGELOG.md", "MIGRATION_TO_OTP21.md"],
main: "readme",
source_ref: @version
],
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.json": :test
],
source_url: "https://github.com/appunite/mockery",
test_coverage: [tool: ExCoveralls],
version: @version
]
end
def application do
[]
end
defp deps do
[
{:beam_inspect, "~> 0.1.1", only: :dev, runtime: false},
{:credo, "~> 0.8", only: :dev, runtime: false},
{:dialyxir, "~> 0.5", only: :dev, runtime: false},
{:excoveralls, "~> 0.7", only: :test, runtime: false},
{:ex_doc, "~> 0.13", only: :dev, runtime: false}
]
end
defp description do
"Simple mocking library for asynchronous testing."
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
maintainers: ["Tobiasz Małecki"],
licenses: ["Apache 2.0"],
links: %{
"GitHub" => "https://github.com/appunite/mockery",
"Changelog" => "https://hexdocs.pm/mockery/changelog.html"
}
]
end
end