forked from archan937/mecks_unit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
54 lines (48 loc) · 1.18 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
defmodule MecksUnit.MixProject do
use Mix.Project
def project do
[
app: :mecks_unit,
version: "0.1.6",
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
name: "MecksUnit",
source_url: "https://github.com/archan937/mecks_unit",
docs: [
main: "readme",
extras: ["README.md"]
],
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.18.0", 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