-
Notifications
You must be signed in to change notification settings - Fork 54
/
mix.exs
86 lines (78 loc) · 2.01 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 Tortoise.MixProject do
use Mix.Project
@version "0.10.0"
def project do
[
app: :tortoise,
version: @version,
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
dialyzer: dialyzer(),
docs: docs(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.html": :test,
"coveralls.json": :test,
"coveralls.post": :test,
docs: :docs
]
]
end
defp description() do
"""
A MQTT client for Elixir.
"""
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :ssl],
mod: {Tortoise.App, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:gen_state_machine, "~> 2.0 or ~> 3.0"},
{:dialyxir, "~> 1.0.0-rc.3", only: [:dev], runtime: false},
{:eqc_ex, "~> 1.4", only: :test},
{:excoveralls, "~> 0.10", only: :test},
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:ct_helper, github: "ninenines/ct_helper", only: :test}
]
end
defp package() do
[
maintainers: ["Martin Gausby"],
licenses: ["Apache 2.0"],
files: ["lib", "mix.exs", "README*", "CHANGELOG*", "LICENSE*"],
links: %{"GitHub" => "https://github.com/gausby/tortoise"}
]
end
defp docs() do
[
name: "Tortoise",
source_ref: "v#{@version}",
main: "introduction",
canonical: "http://hexdocs.pm/tortoise",
source_url: "https://github.com/gausby/tortoise",
extras: [
"docs/introduction.md",
"docs/connecting_to_a_mqtt_broker.md",
"docs/connection_supervision.md",
"docs/publishing_messages.md"
]
]
end
defp dialyzer() do
[
ignore_warnings: "dialyzer.ignore",
flags: [:error_handling, :race_conditions, :underspecs]
]
end
end