-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
75 lines (65 loc) · 1.59 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
defmodule ToxiproxyEx.MixProject do
use Mix.Project
@source_url "https://github.com/Jcambass/toxiproxy_ex"
def project do
[
app: :toxiproxy_ex,
version: "1.1.1",
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
# Dialyzer
dialyzer: [
plt_local_path: "plts",
plt_core_path: "plts",
plt_add_apps: [:ssl, :crypto, :mix, :ex_unit, :erts, :kernel, :stdlib]
],
# Hex
description: "Elixir Client for Toxiproxy",
package: package(),
# Docs
docs: docs()
]
end
def application do
[
extra_applications: [],
env: [host: "http://127.0.0.1:8474"]
]
end
defp deps do
[
{:tesla, "~> 1.7.0"},
{:jason, ">= 1.0.0"},
{:castore, "~> 1.0.3"},
{:mint, "~> 1.0"},
{:ex_doc, "~> 0.23", only: :dev, runtime: false}
] ++
if Version.match?(System.version(), "~> 1.12") do
[{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}]
else
[]
end
end
defp package do
[
maintainers: ["Joel Colin Ambass"],
licenses: ["MIT"],
links: %{
"Changelog" => "#{@source_url}/blob/main/CHANGELOG.md",
"GitHub" => @source_url
},
files: ~w(.formatter.exs mix.exs README.md CHANGELOG.md lib)
]
end
defp docs do
[
main: "ToxiproxyEx",
source_url: @source_url,
extras: ["README.md"]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end