-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
55 lines (49 loc) · 1.28 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
defmodule SolarEdge.MixProject do
use Mix.Project
def project do
[
app: :solar_edge,
version: "0.0.1",
elixir: "~> 1.14",
description: "Access the SolarEdge monitoring API",
elixirc_paths: elixirc_paths(Mix.env),
start_permanent: Mix.env() == :prod,
deps: deps(),
consolidate_protocols: Mix.env() != :test,
test_coverage: [tool: ExCoveralls],
package: package(),
preferred_cli_env: [
coveralls: :test,
"coveralls.json": :test,
"coveralls.html": :test
]
]
end
def application do
[
extra_applications: extra_applications(Mix.env())
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_env), do: ["lib"]
defp extra_applications(:test), do: [:logger, :mox]
defp extra_applications(_env), do: [:logger]
defp deps do
[
{:excoveralls, ">= 0.0.0", only: :test},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:mox, ">= 0.0.0", only: :test, runtime: false},
{:req, "~> 0.4.5"},
{:time_zone_info, "~> 0.6.5"}
]
end
defp package do
%{
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/joeyates/solar_edge"
},
maintainers: ["Joe Yates"]
}
end
end