-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
73 lines (65 loc) · 1.47 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
defmodule ExTwitch.Mixfile do
use Mix.Project
@description """
Simple Elixir wrapper for the Twitch V5 API
"""
def project do
[
app: :ex_twitch,
version: "0.0.1",
elixir: "~> 1.3",
name: "ExTwitch",
description: @description,
preferred_cli_env: preferred_cli_env(),
test_coverage: [tool: ExCoveralls],
package: package(),
deps: deps()
]
end
def application do
[
applications: [
:httpoison,
:poison
]
]
end
defp deps do
[
{:httpoison, "~> 0.10"},
{:poison, "~> 3.0"},
{:dialyxir, "~> 0.4", only: :dev, runtime: false},
{:earmark, "~> 1.0", only: [:dev, :docs]},
{:ex_doc, "~> 0.14.5", only: [:dev, :docs]},
{:inch_ex, "~> 0.5", only: :docs},
{:exvcr, "~> 0.6", only: :test},
{:meck, "~> 0.8", only: :test},
{:excoveralls, "~> 0.6", only: :test}
]
end
defp package do
[
maintainers: ["Pat Lackemacher"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/plackemacher/ex_twitch"
}
]
end
defp preferred_cli_env, do: preferred_cli_env_vcr() ++ preferred_cli_env_coveralls()
defp preferred_cli_env_vcr do
[
vcr: :test,
"vcr.delete": :test,
"vcr.check": :test,
"vcr.show": :test,
]
end
defp preferred_cli_env_coveralls do
[
"coveralls": :test,
"coveralls.html": :test,
"coveralls.json": :test,
]
end
end