-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
77 lines (69 loc) · 1.75 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
defmodule EctoAnon.MixProject do
use Mix.Project
@source_url "https://github.com/WTTJ/ecto_anon"
@version "0.6.0"
def project do
[
app: :ecto_anon,
name: "ecto_anon",
description: "Data anonymization for your Ecto models",
version: @version,
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
aliases: aliases(),
package: package(),
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ecto_sql, "~> 3.12"},
{:ecto_sqlite3, "~> 0.17", only: :test},
{:jason, "~> 1.3", only: :test},
{:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.27", only: :dev, runtime: false}
]
end
def elixirc_paths(:test), do: ["lib", "test/support"]
def elixirc_paths(_), do: ["lib"]
defp aliases do
[
# Ensures database is reset before tests are run
test: ["ecto.drop", "ecto.create --quiet", "ecto.migrate", "test"]
]
end
defp package do
[
maintainers: ["Clément Quaresma"],
licenses: ["MIT"],
files: ~w(lib .formatter.exs mix.exs README* LICENSE*),
links: %{
"GitHub" => @source_url
}
]
end
defp docs do
[
extras: [
"README.md": [title: "Overview"],
"LICENSE.md": [title: "License"]
],
main: "readme",
source_url: @source_url,
homepage_url: @source_url,
formatters: ["html"],
groups_for_modules: [
"Custom functions": ~r/^EctoAnon.Functions.?/
]
]
end
end