-
Notifications
You must be signed in to change notification settings - Fork 18
/
mix.exs
102 lines (93 loc) · 2.33 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
defmodule Holidefs.Mixfile do
use Mix.Project
@github_url "https://github.com/toggl/holidefs"
@version "0.4.0"
def project do
[
app: :holidefs,
version: @version,
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
docs: docs(),
preferred_cli_env: preferred_cli_env(),
dialyzer: dialyzer()
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:dev), do: ["lib", "dev/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[
extra_applications: [:logger, :crypto]
]
end
defp package do
[
description: "Definition-based national holidays",
files: ["lib", "priv", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Kelvin Stinghen", "Adrien Anselme"],
licenses: ["MIT"],
links: %{"GitHub" => @github_url}
]
end
defp docs do
[
extras: [
"CHANGELOG.md": [],
"CODE_OF_CONDUCT.md": [title: "Code of Conduct"],
"CONTRIBUTING.md": [],
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @github_url,
source_ref: "#v{@version}",
homepage_url: @github_url,
formatters: ["html"],
api_reference: false
]
end
defp preferred_cli_env do
[
muzak: :test,
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
end
defp dialyzer do
[
plt_apps: [
:compiler,
:elixir,
:gettext,
:kernel,
:logger,
:stdlib,
:yamerl,
:yaml_elixir,
:mix,
:download
],
dialyzer: [plt_add_deps: :transitive]
]
end
defp deps do
[
{:credo, "~> 1.4", only: [:test, :dev], optional: true, runtime: false},
{:download, "~> 0.0.4", only: :dev, runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:excoveralls, "~> 0.10", only: :test},
{:muzak, "~> 1.1", only: :test},
{:gettext, "~> 0.23"},
{:inch_ex, only: :docs},
{:yaml_elixir, "~> 2.0"},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}
]
end
end