-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmix.exs
70 lines (60 loc) · 1.91 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
defmodule CoherenceAssent.Mixfile do
use Mix.Project
@version "0.4.0"
def project do
[
app: :coherence_assent,
version: @version,
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
compilers: [:phoenix] ++ Mix.compilers,
preferred_cli_env: [credo: :test,
ex_doc: :test,
"coveralls.html": :test],
deps: deps(),
test_coverage: [tool: ExCoveralls],
# Hex
description: "Multi-provider support for Coherence",
package: package(),
# Docs
name: "CoherenceAssent",
docs: [source_ref: "v#{@version}", main: "CoherenceAssent",
canonical: "http://hexdocs.pm/coherence_assent",
source_url: "https://github.com/danschultzer/coherence_assent",
extras: ["README.md"]]
]
end
def application do
[
extra_applications: extra_applications(Mix.env)
]
end
defp extra_applications(:test), do: [:postgrex, :ecto, :logger]
defp extra_applications(_), do: [:logger]
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:coherence, ">= 0.5.2 and < 0.6.0"},
{:oauth2, "~> 0.9"},
{:oauther, "~> 1.1"},
# Dev and test dependencies
{:postgrex, ">= 0.11.1", only: :test},
{:credo, "~> 0.10", only: [:dev, :test]},
{:excoveralls, "~> 0.10", only: :test},
{:bypass, "~> 0.8", only: :test},
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:phoenix_ecto, "~> 3.3", only: :test}
]
end
defp package do
[
maintainers: ["Dan Shultzer"],
licenses: ["MIT"],
links: %{github: "https://github.com/danschultzer/coherence_assent"},
files: ~w(lib priv/templates priv/boilerplate) ++ ~w(LICENSE mix.exs README.md)
]
end
end