forked from nerves-hub/nerves_hub_user_api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
78 lines (69 loc) · 1.9 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
defmodule NervesHubUserAPI.MixProject do
use Mix.Project
@version "0.7.1"
@source_url "https://github.com/nerves-hub/nerves_hub_user_api"
def project do
[
app: :nerves_hub_user_api,
version: @version,
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
description: description(),
package: package(),
dialyzer: dialyzer(),
preferred_cli_env: %{
docs: :docs,
"hex.publish": :docs,
"hex.build": :docs
}
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
env: [host: "api.nerves-hub.org", port: 443],
extra_applications: [:logger]
]
end
defp description do
"NervesHub Management API client"
end
defp dialyzer do
[ignore_warnings: "dialyzer.ignore-warnings"]
end
defp docs do
[
extras: ["README.md", "CHANGELOG.md"],
main: "readme",
skip_undefined_reference_warnings_on: ["CHANGELOG.md"],
source_ref: "v#{@version}",
source_url: @source_url
]
end
defp package do
[
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:jason, "~> 1.0"},
{:tesla, "~> 1.2.1 or ~> 1.3"},
{:hackney, "~> 1.9"},
{:x509, "~> 0.3"},
{:ex_doc, "~> 0.23", only: [:docs], runtime: false},
{:dialyxir, "1.0.0", only: [:dev, :test], runtime: false},
{:nerves_hub_web,
github: "nerves-hub/nerves_hub_web", branch: "main", only: :test, runtime: false},
{:phoenix, "~> 1.4", only: :test, override: true},
{:nerves_hub_ca, github: "nerves-hub/nerves_hub_ca", only: :test, runtime: false}
]
end
end