forked from hrzndhrn/json_xema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
95 lines (88 loc) · 2.26 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
90
91
92
93
94
95
defmodule JsonXema.MixProject do
use Mix.Project
def project do
[
app: :json_xema,
version: "0.6.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
source_url: "https://github.com/hrzndhrn/json_xema",
preferred_cli_env: [
carp: :test,
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.travis": :test,
"coveralls.html": :test,
"gen.test_suite": :test
],
docs: [
extras: [
"docs/readme.md",
"docs/usage.md",
"docs/loader.md",
"docs/unsupported.md"
]
],
dialyzer: [
plt_file: {:no_warn, "test/support/plts/dialyzer.plt"}
]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp description() do
"A JSON Schema validator for draft-04, -06, and -07."
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:benchee, "~> 1.0", only: :dev},
{:benchee_markdown, "~> 0.2", only: :dev},
{:conv_case, "~> 0.2"},
{:cowboy, "~> 2.7.0", only: :test},
{:credo, "~> 1.5", only: [:dev, :test]},
{:dialyxir, "~> 1.1", only: [:dev], runtime: false},
{:ex_doc, "~> 0.25", only: :dev, runtime: false},
{:ex_json_schema, "~> 0.8", only: :dev},
{:excoveralls, "~> 0.8", only: :test},
{:httpoison, "~> 1.8", only: :test},
{:jason, "~> 1.0", only: [:dev, :test]},
{:xema, "~> 0.14"}
]
end
defp package do
[
maintainers: ["Marcus Kruse"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/hrzndhrn/json_xema"},
files: [
"lib",
"mix.exs",
"README*",
"LICENSE*",
"docs/readme.md",
"docs/usage.md",
"docs/loader.md",
"docs/unsupported.md",
"CHANGELOG.md"
]
]
end
defp aliases do
[
bench: ["run bench/run.exs"],
carp: "test --seed 0 --max-failures 1 --trace"
]
end
end