-
Notifications
You must be signed in to change notification settings - Fork 19
/
mix.exs
74 lines (64 loc) · 1.67 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
defmodule Alice.Mixfile do
use Mix.Project
@version "0.4.3"
def project do
[
app: :alice,
version: @version,
elixir: "~> 1.7",
deps: deps(),
package: package(),
consolidate_protocols: Mix.env() != :test,
elixirc_paths: elixirc_paths(Mix.env()),
name: "Alice",
docs: docs(),
preferred_cli_env: [
docs: :docs,
coveralls: :test,
"coveralls.html": :test,
"coveralls.json": :test
],
test_coverage: [tool: ExCoveralls],
source_url: "https://github.com/alice-bot/alice",
homepage_url: "https://www.alice-bot.org",
description: "A Slack bot"
]
end
defp elixirc_paths(:docs), do: ~w(lib installer/lib)
defp elixirc_paths(_env), do: ~w(lib)
def application do
[
extra_applications: [:logger, :mix],
env: [logger: true]
]
end
defp deps do
[
{:slack, "~> 0.23.2"},
{:poison, "~> 4.0"},
{:poolboy, "~> 1.5.0"},
{:redix, "~> 0.6.0"},
# Optional dependencies
{:dialyxir, "~> 1.0", only: [:dev], runtime: false, optional: true},
{:credo, "~> 1.2", only: [:dev, :test], runtime: false, optional: true},
# Test dependencies
{:excoveralls, "~> 0.12.3", only: :test},
# Docs dependencies
{:ex_doc, "~> 0.21", only: :dev}
]
end
defp package do
[
maintainers: ["Adam Zaninovich"],
licenses: ["MIT"],
links: %{github: "https://github.com/alice-bot/alice"},
files: ~w(lib CHANGELOG.md LICENSE config mix.exs README.md .formatter.exs)
]
end
defp docs do
[
source_ref: "v#{@version}",
logo: "resources/logo.png"
]
end
end