-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmix.exs
82 lines (73 loc) · 2.02 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
defmodule CPF.MixProject do
use Mix.Project
def project do
[
app: :cpf,
version: "1.2.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
elixirc_paths: elixirc_paths(Mix.env()),
name: "CPF",
docs: docs(),
aliases: aliases(),
dialyzer: [
plt_file: {:no_warn, "plts/dialyzer.plt"},
plt_add_apps: [:mix, :ex_unit, :ecto, :ecto_sql]
],
preferred_cli_env: [dialyzer: :test, unit_test: :test]
]
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
[
{:ex_doc, "~> 0.20", only: [:docs], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:credo, "~> 1.1", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.10", only: [:dev, :test], runtime: false},
{:postgrex, "~> 0.20.0", only: [:test]}
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
] ++ ecto_deps()
end
defp ecto_deps do
[
{:ecto, "~> 3.2", optional: true},
{:ecto_sql, "~> 3.2", only: [:dev, :test], optional: true}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def description do
"A Brazilian CPF validation written in Elixir."
end
def package do
[
name: "cpf",
maintainers: ["Ulisses Almeida"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/ulissesalmeida/cpf"}
]
end
def docs do
[
source_url: "https://github.com/ulissesalmeida/cpf",
extras: ["README.md"]
]
end
def aliases do
[
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
unit_test: ["test --exclude data_case"]
]
end
end