-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
58 lines (51 loc) · 1.51 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
defmodule Atomex.MixProject do
use Mix.Project
def project do
[
app: :atomex,
version: String.trim(File.read!("VERSION")),
elixir: "~> 1.6",
description:
"ATOM feed builder with a focus on standards compliance, security and extensibility",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
test_coverage: [tool: ExCoveralls],
docs: [extras: ["README.md"], main: "readme"],
preferred_cli_env: [coveralls: :test],
dialyzer: [remove_defaults: [:unknown]]
]
end
def application do
[extra_applications: [:logger]]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
# Core dependencies
{:xml_builder, "~> 2.1"},
# Test
{:sweet_xml, "~> 0.6.5", only: :test},
# Dev
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:earmark, "~> 1.4", only: :dev, runtime: false},
{:ex_doc, "~> 0.23", only: :dev, runtime: false},
{:excoveralls, "~> 0.13", only: :test},
{:eliver, "~> 2.0.0", only: :dev}
]
end
defp package do
[
files: ["lib", "mix.exs", "README.md", "VERSION"],
maintainers: ["Benjamin Piouffle"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/Betree/atomex",
"Docs" => "https://hexdocs.pm/atomex"
}
]
end
end