-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
105 lines (95 loc) · 2.35 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
103
104
105
defmodule Tox.MixProject do
use Mix.Project
def project do
[
app: :tox,
version: "0.2.3",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: preferred_cli_env(),
dialyzer: dialyzer(),
aliases: aliases(),
description: description(),
docs: docs(),
package: package()
]
end
def description do
"Some structs and functions to work with dates, times, durations, periods, and intervals."
end
def application do
[
extra_applications: [:logger]
]
end
def docs do
[
extras: [
"README.md",
"CHANGELOG.md"
],
main: "readme",
formatters: ["html"],
skip_undefined_reference_warnings_on: ["CHANGELOG.md"]
]
end
defp package do
[
maintainers: ["Marcus Kruse"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/hrzndhrn/tox"},
files: [
"lib",
"mix.exs",
"README*",
"LICENSE*",
"CHANGELOG*"
]
]
end
defp dialyzer do
[
ignore_warnings: ".dialyzer_ignore.exs",
plt_file: {:no_warn, "test/support/plts/dialyzer.plt"},
flags: [:unmatched_returns]
]
end
defp preferred_cli_env do
[
carp: :test,
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.travis": :test,
"coveralls.github": :test
]
end
defp elixirc_paths(env) do
case env do
:test -> ["lib", "test/support"]
_else -> ["lib"]
end
end
defp aliases do
[
carp: ["test --seed 0 --max-failures 1"]
]
end
defp deps do
[
{:cldr_calendars_coptic, "~> 1.0.0-rc.0", only: [:dev, :test]},
{:credo, "~> 1.4", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.1", only: :dev, runtime: false},
{:excoveralls, "~> 0.13", only: :test, runtime: false},
{:ex_cldr_calendars, "~> 1.17-rc", only: [:dev, :test], override: true},
{:ex_cldr_calendars_ethiopic, "~> 0.4", only: [:dev, :test]},
{:ex_doc, "~> 0.22", only: :dev, runtime: false},
{:stream_data, "~> 0.5", only: [:dev, :test]},
{:time_zone_info, "~> 0.5", only: [:test, :dev]}
]
end
end