-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
98 lines (87 loc) · 2.11 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
98
defmodule CaptainHook.MixProject do
use Mix.Project
@source_url "https://github.com/annatel/captain_hook"
@version "3.1.0"
def project do
[
app: :captain_hook,
version: version(),
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
docs: docs(),
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: test_coverage(),
aliases: aliases()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:mox, "~> 0.4", only: :test},
{:bypass, "~> 2.1.0", only: :test},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:myxql, ">= 0.0.0"},
{:ecto_sql, "~> 3.6"},
{:captain_hook_signature, "~> 0.4.1"},
{:antl_utils_elixir, "~> 1.4"},
{:antl_utils_ecto, "~> 2.8"},
{:queuetopia, "~> 2.5"},
{:finch, "~> 0.7.0"},
{:plug_crypto, "~> 1.0"},
{:recase, "~> 0.7"},
{:shortcode, "~> 0.7.0"},
{:padlock, "~> 0.2"},
{:jason, "~> 1.2"}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp test_coverage() do
[
ignore_modules: [
CaptainHook.Migrations,
CaptainHook.Migrations.V1,
CaptainHook.Migrations.V2,
CaptainHook.Migrations.V3
]
]
end
defp aliases do
[
"app.version": &display_app_version/1,
test: ["ecto.setup", "test"],
"ecto.setup": [
"ecto.create --quiet -r CaptainHook.TestRepo",
"ecto.migrate -r CaptainHook.TestRepo"
],
"ecto.reset": ["ecto.drop -r CaptainHook.TestRepo", "ecto.setup"]
]
end
defp description() do
"Ordered signed webhook notifications"
end
defp package() do
[
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
]
end
defp docs do
[
main: "readme",
source_url: @source_url,
extras: [
"README.md"
]
]
end
defp version(), do: @version
defp display_app_version(_), do: Mix.shell().info(version())
end