-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
98 lines (87 loc) · 2.25 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
defmodule Clover.MixProject do
use Mix.Project
@version "0.1.0"
def project do
[
app: :clover,
version: @version,
name: "Clover",
description: description(),
package: package(),
source_url: "https://github.com/wasnotrice/clover",
homepage_url: "https://github.com/wasnotrice/clover",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
deps: deps(),
docs: docs(),
aliases: aliases(),
preferred_cli_env: preferred_cli_env()
]
end
def application do
[extra_applications: [:logger], mod: {Clover, []}, registered: [Clover]]
end
defp deps do
[
{:gen_state_machine, "~> 2.0"},
{:credo, "~> 0.10.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0.0-rc.3", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.19", only: :dev},
{:excoveralls, "~> 0.10", only: :test},
{:junit_formatter, "~> 2.2", only: :test}
] ++ adapter_deps()
end
def adapter_deps do
_slack = [
{:slack, "~> 0.14.0"}
]
end
def description do
"""
A framework for building chat bots
"""
end
def package do
[
licenses: ["Apache 2.0"],
maintainers: ["Eric Watson"],
links: %{
"Source" => "https://github.com/wasnotrice/clover",
"Issue tracker" => "https://github.com/wasnotrice/clover/issues",
"Homepage" => "https://github.com/wasnotrice/clover"
}
]
end
def docs do
[
main: "readme",
extras: ["README.md"]
]
end
def aliases do
[
quality: [
"clean",
"compile --warnings-as-errors",
"credo --strict",
"test --cover --raise",
# Run dialyzer last because it halts the chain with its exit status even if it is successful
"dialyzer --halt-exit-status"
]
]
end
def preferred_cli_env do
[
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
quality: :test
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:dev), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end