-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
97 lines (89 loc) · 2.43 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
96
97
defmodule Warder.MixProject do
use Mix.Project
def project do
[
app: :warder,
version: "0.1.2",
elixir: "~> 1.16",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
docs: &docs/0,
deps: deps(),
source_url: "https://github.com/sustema-ag/warder",
description: "Library for handling ranges. Includes Ecto Types for PostgreSQL.",
package: package(),
test_coverage: [tool: ExCoveralls],
aliases: aliases(),
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.github": :test,
"coveralls.multiple": :test,
ecto: :test,
"ecto.create": :test,
"ecto.drop": :test,
"ecto.dump": :test,
"ecto.gen.migration": :test,
"ecto.gen.repo": :test,
"ecto.load": :test,
"ecto.migrate": :test,
"ecto.migrations": :test,
"ecto.rollback": :test,
"ecto.setup": :test
]
]
end
defp elixirc_paths(env)
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_env), do: ["lib"]
def application do
[
extra_applications: [:logger]
]
end
defp package do
[
maintainers: ["Jonatan Männchen"],
files: [
"lib",
"LICENSE*",
"mix.exs",
"README*"
],
licenses: ["MIT"],
links: %{"Github" => "https://github.com/sustema-ag/warder"}
]
end
defp docs do
{ref, 0} = System.cmd("git", ["rev-parse", "--verify", "--quiet", "HEAD"])
[
source_ref: ref,
main: "readme",
extras: ["README.md"],
logo: "assets/logo-optim.png",
assets: "assets"
]
end
defp deps do
[
{:credo, "~> 1.7", only: :dev, runtime: false},
{:decimal, "~> 2.1", optional: true},
{:dialyxir, "~> 1.4", only: :dev, runtime: false},
{:ecto, "~> 3.11", optional: true},
{:ecto_sql, "~> 3.11", optional: true},
{:excoveralls, "~> 0.18", only: :test},
{:ex_doc, "~> 0.36.1", only: :dev, runtime: false},
{:postgrex, "~> 0.19.0", optional: true},
{:stream_data, "~> 1.1.0", only: [:dev, :test]},
{:styler, "~> 1.3.1", only: [:dev, :test], runtime: false}
]
end
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"]
]
end
end