-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
86 lines (77 loc) · 2.05 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
defmodule EtcdEx.MixProject do
use Mix.Project
def project do
[
app: :etcdex,
version: "1.3.0",
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
package: package(),
name: "EtcdEx",
source_url: "https://github.com/team-telnyx/etcdex",
description: description(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
def application do
other_extra_applications =
if Mix.env() == :test,
do: [:inets],
else: []
[extra_applications: [:logger] ++ other_extra_applications]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:mint, "~> 1.0"},
{:protobuf, "~> 0.12"},
{:connection, "~> 1.1"},
{:telemetry, "~> 0.4 or ~> 1.0"},
# Dev/test dependencies
{:dialyxir, "~> 1.3", only: [:dev, :test], runtime: false},
{:stream_data, "~> 0.5", only: :test},
{:excoveralls, "~> 0.10", only: :test},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp aliases do
[
protoc:
for file <- [
"auth.proto",
"gogo.proto",
"kv.proto",
"router.proto"
] do
"cmd protoc --elixir_out=./lib/etcd_ex/protos -Iprotos protos/#{file}"
end ++ ["format lib/etcd_ex/protos/**/*.ex"]
]
end
defp description do
"""
An Elixir Etcd client.
"""
end
defp package do
[
maintainers: [
"Guilherme Versiani <[email protected]>",
"Michał Szajbe <[email protected]>",
"Thanya Nitithatsanakul <[email protected]>"
],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/team-telnyx/etcdex"},
files: ~w"lib mix.exs README.md LICENSE"
]
end
end