-
Notifications
You must be signed in to change notification settings - Fork 397
/
mix.exs
103 lines (94 loc) · 2.61 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
defmodule Distillery.Mixfile do
use Mix.Project
def project do
[
app: :distillery,
version: "2.1.1",
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
docs: docs(),
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env),
preferred_cli_env: [
docs: :docs,
"hex.publish": :docs,
"eqc.install": :test,
coveralls: :test,
"coveralls.detail": :test,
"coveralls.html": :test,
"coveralls.json": :test,
"coveralls.post": :test,
],
test_coverage: [tool: ExCoveralls],
test_paths: ["test/cases"],
dialyzer_warnings: [
:error_handling,
:race_conditions,
:underspecs,
:unknown
],
dialyzer_ignored_warnings: [
{:warn_contract_supertype, :_, {:contract_supertype, [:_, :impl_for, 1, :_, :_]}},
{:warn_contract_supertype, :_, {:contract_supertype, [:_, :impl_for!, 1, :_, :_]}}
]
]
end
def application do
[extra_applications: [:runtime_tools]]
end
defp deps do
[
{:artificery, "~> 0.2"},
{:ex_doc, "~> 0.13", only: [:docs]},
{:excoveralls, "~> 0.6", only: [:test]},
{:eqc_ex, "~> 1.4", only: [:test]},
{:ex_unit_clustered_case, "~> 0.3", only: [:test], runtime: false},
{:dialyzex, "~> 1.2", only: [:dev], runtime: false}
]
end
defp description do
"""
Build releases of your Mix projects with ease!
"""
end
defp package do
[
files: ["lib", "priv", "mix.exs", "README.md", "LICENSE.md", ".formatter.exs"],
maintainers: ["Paul Schoenfelder"],
licenses: ["MIT"],
links: %{
Documentation: "https://hexdocs.pm/distillery",
Changelog: "https://hexdocs.pm/distillery/changelog.html",
GitHub: "https://github.com/bitwalker/distillery"
}
]
end
defp aliases do
[
docs: [&mkdocs/1, "docs"],
c: ["compile", "format --check-equivalent"],
"compile-check": [
"compile",
"format --check-formatted --dry-run",
"dialyzer"
],
]
end
defp mkdocs(_args) do
docs = Path.join([File.cwd!, "bin", "docs"])
{_, 0} = System.cmd(docs, ["build"], into: IO.stream(:stdio, :line))
end
defp docs do
[
source_url: "https://github.com/bitwalker/distillery",
homepage_url: "https://github.com/bitwalker/distillery",
main: "home"
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end