-
Notifications
You must be signed in to change notification settings - Fork 112
/
mix.exs
86 lines (74 loc) · 1.92 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
defmodule Mint.MixProject do
use Mix.Project
@version "1.6.2"
@repo_url "https://github.com/elixir-mint/mint"
def project do
[
app: :mint,
version: @version,
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
# Xref
xref: [
exclude: [
:persistent_term,
{:ssl, :cipher_suites, 1},
{:public_key, :cacerts_get, 0},
CAStore
]
],
# Dialyxir
dialyzer: [
plt_add_apps: [:castore],
plt_local_path: "plts",
plt_core_path: "plts"
],
# Code coverage
test_coverage: [tool: ExCoveralls],
preferred_cli_env: ["coveralls.html": :test, coveralls: :test],
# Hex
package: package(),
description: "Small and composable HTTP client.",
# Docs
name: "Mint",
docs: [
source_ref: "v#{@version}",
source_url: @repo_url,
extras: [
"pages/Architecture.md",
"pages/Decompression.md"
]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :ssl],
mod: {Mint.Application, []}
]
end
defp package do
[
licenses: ["Apache-2.0"],
links: %{"GitHub" => @repo_url}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_env), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:castore, "~> 0.1.0 or ~> 1.0", optional: true},
{:hpax, "~> 0.1.1 or ~> 0.2.0 or ~> 1.0"},
# Dev/test dependencies
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.20", only: :dev},
{:excoveralls, "~> 0.18.0", only: :test},
{:mox, "~> 1.0", only: :test},
{:stream_data, "~> 1.0", only: [:dev, :test]}
]
end
end