-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
97 lines (89 loc) · 2.52 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
defmodule Unleash.MixProject do
@moduledoc false
use Mix.Project
@gitlab_url "https://www.gitlab.com/afontaine/unleash_ex"
def project do
[
app: :unleash,
version: "VERSION" |> File.read!() |> String.trim(),
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
name: "Unleash",
description: "An Unleash Feature Flag client for Elixir",
source_url: @gitlab_url,
homepage_url: @gitlab_url,
docs: docs(),
package: [
files: ~w(mix.exs lib LICENSE README.md CHANGELOG.md VERSION),
maintainers: ["Andrew Fontaine"],
licenses: ["MIT"],
links: %{
"GitLab" => @gitlab_url
}
],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
dialyzer: [
plt_add_deps: :project,
plt_add_apps: [:mix]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {Unleash, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:credo, "~> 1.0", only: [:dev, :test], runtime: false},
{:inch_ex, "~> 2.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0.0-rc.6", only: :dev, runtime: false},
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
{:expublish, "~> 2.7", only: :dev, runtime: false},
{:junit_formatter, "~> 3.0", only: :test},
{:stream_data, "~> 0.4.3", only: [:test, :dev]},
{:excoveralls, "~> 0.8", only: :test},
{:mox, "~> 0.5.1", only: :test},
{:recase, "~> 0.6.0"},
{:murmur, "~> 1.0"},
{:mojito, "~> 0.7.6"},
{:jason, "~> 1.1"},
{:plug, "~> 1.8", optional: true},
{:phoenix_gon, "~> 0.4.0", optional: true}
]
end
defp aliases do
[
test: ["test --no-start"]
]
end
defp docs do
[
main: "readme",
extras: ["README.md"],
deps: [
mojito: "https://hexdocs.pm/mojito/",
murmur: "https://hexdocs.pm/murmur/",
plug: "https://hexdocs.pm/plug/",
phoenix_gon: "https://hexdocs.pm/phoenix_gon/"
],
groups_for_modules: [
Strategies: ~r"Strateg(y|ies)\."
]
]
end
defp elixirc_paths(:test), do: ["test/support", "lib"]
defp elixirc_paths(_), do: ["lib"]
end