-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
89 lines (79 loc) · 2.1 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
defmodule HTTPipe.Mixfile do
use Mix.Project
@project_description """
HTTPipe is an adapter-driven HTTP library for Elixir that provides a way
to build composable HTTP requests.
"""
@source_url "https://github.com/davidantaramian/httpipe"
@version "0.9.0"
def project do
[
app: :httpipe,
name: "HTTPipe",
version: @version,
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env),
preferred_cli_env: [
"coveralls": :test,
"coveralls.detail": :test,
"coveralls.circle": :test,
"coveralls.html": :test
],
test_coverage: [
tool: ExCoveralls
],
description: @project_description,
source_url: @source_url,
homepage_url: @source_url,
package: package(),
deps: deps(),
docs: docs(),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod
]
end
def application() do
[
env: [httpipe: [adapter: HTTPipe.Adapters.Unimplemented]],
applications: apps(Mix.env)
]
end
defp apps(:test), do: [:inets, :bypass | apps()]
defp apps(_), do: apps()
defp apps(), do: [:logger]
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp docs() do
[
source_ref: "v#{@version}",
main: "readme",
extras: [
"README.md": [title: "README"]
]
]
end
defp package() do
[
name: :httpipe,
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["David Antaramian"],
licenses: ["ISC"],
links: %{
"GitHub" => @source_url,
"Documentation" => "https://hexdocs.pm/httpipe/readme.html"
}
]
end
defp deps do
[
{:earmark, "~> 1.0", only: [:dev, :docs]},
{:ex_doc, "~> 0.13", only: [:dev, :docs]},
{:poison, "~> 2.2.0", only: [:test]},
{:excoveralls, "~> 0.5", only: [:test]},
{:dialyxir, "~> 0.3", only: [:dev, :test]},
{:bypass, "~> 0.5", only: [:test]},
{:credo, "~> 0.4", only: [:dev, :test]},
{:inch_ex, "~> 0.5", only: :test, override: true},
]
end
end