forked from DockYard/openid_connect
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
81 lines (72 loc) · 1.82 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
defmodule OpenIDConnect.Mixfile do
use Mix.Project
@version "1.0.0"
def project do
[
app: :openid_connect,
version: @version,
elixir: "~> 1.12",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
description: description(),
package: package(),
name: "OpenID Connect",
deps: deps(),
docs: docs(),
name: "OpenID Connect",
source_url: "https://github.com/DockYard/openid_connect",
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
defp elixirc_paths(:test), do: elixirc_paths(nil) ++ ["test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[
mod: {OpenIDConnect.Application, []},
extra_applications: [:logger]
]
end
def description do
"""
OpenID Connect for Elixir
"""
end
def docs do
[
main: "readme",
source_ref: "v#{@version}",
logo: "openid-logo.png",
extras: ["README.md"]
]
end
def package do
[
maintainers: ["Brian Cardarella"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/DockYard/openid_connect"},
files: ~w(lib mix.exs README.md LICENSE.md CHANGELOG.md)
]
end
defp deps do
[
{:jason, ">= 1.0.0"},
{:finch, "~> 0.14"},
{:jose, "~> 1.8"},
# Test deps
{:earmark, "~> 1.2", only: :dev},
{:credo, "~> 1.6", only: :dev},
{:dialyxir, "~> 1.2", only: :dev},
{:ex_doc, "~> 0.18", only: :dev},
{:excoveralls, "~> 0.14", only: :test},
{:plug_cowboy, "~> 2.6", only: :test},
{:bypass, "~> 2.1", only: :test}
]
end
end