-
Notifications
You must be signed in to change notification settings - Fork 7
/
mix.exs
57 lines (50 loc) · 1.24 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
defmodule MecksUnit.MixProject do
use Mix.Project
@version "0.1.9"
def project do
[
app: :mecks_unit,
version: @version,
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
name: "MecksUnit",
docs: [
main: "readme",
extras: ["README.md"],
source_ref: "v#{@version}",
source_url: "https://github.com/archan937/mecks_unit"
],
elixirc_options: [warnings_as_errors: true]
]
end
def application do
[
extra_applications: [:logger],
mod: {MecksUnit.Application, []}
]
end
defp deps do
[
{:meck, "~> 0.8.8"},
{:ex_doc, "~> 0.19", only: :dev, runtime: false}
]
end
defp description do
"""
A simple Elixir package to elegantly mock module functions within (asynchronous) ExUnit tests using Erlang's :meck library
"""
end
defp package do
[
maintainers: ["Paul Engel"],
licenses: ["MIT"],
links: %{github: "https://github.com/archan937/mecks_unit"}
]
end
defp elixirc_paths(:test), do: ["lib", "test/modules"]
defp elixirc_paths(_), do: ["lib"]
end