-
Notifications
You must be signed in to change notification settings - Fork 100
/
mix.exs
48 lines (42 loc) · 1.38 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
defmodule HTTPotion.Mixfile do
use Mix.Project
def project do
if Mix.env == :dial, do: Application.ensure_all_started(:ex_unit)
[ app: :httpotion,
name: "httpotion",
source_url: "https://github.com/unrelentingtech/httpotion",
version: "3.2.0",
elixir: "~> 1.3",
docs: [ extras: ["README.md", "CODE_OF_CONDUCT.md"] ],
description: description(),
deps: deps(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env),
test_pattern: "*_test.ex",
warn_test_pattern: "*_test.exs",
preferred_cli_env: [ dialyzer: :dial ] ]
end
def application do
[ applications: [:ssl, :ibrowse] ]
end
defp description do
"""
Fancy HTTP client for Elixir, based on ibrowse.
"""
end
defp deps do
[ {:ibrowse, "== 4.4.0"},
{:ssl_verify_fun, "~> 1.1"},
{:ex_doc, "~> 0.28", only: [:dev, :test, :docs]} ]
end
defp package do
[ files: [ "lib", "mix.exs", "README.md", "CODE_OF_CONDUCT.md", "UNLICENSE" ],
maintainers: [ "unrelentingtech" ],
licenses: [ "Unlicense" ],
links: %{ "GitHub" => "https://github.com/unrelentingtech/httpotion" } ]
end
# http://learningelixir.joekain.com/dialyzer-and-integration-tests/
# modified to only compile for dialyzer, not for running tests
defp elixirc_paths(:dial), do: ["lib", "test"]
defp elixirc_paths(_), do: ["lib"]
end