This repository has been archived by the owner on May 26, 2021. It is now read-only.
/
mix.exs
82 lines (73 loc) · 2.19 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 SmartCity.Registry.MixProject do
use Mix.Project
def project do
[
app: :smart_city_registry,
version: "5.0.3",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
description: description(),
package: package(),
source_url: "https//www.github.com/smartcitiesdata",
elixirc_paths: elixirc_paths(Mix.env()),
test_paths: test_paths(Mix.env()),
dialyzer: [plt_file: {:no_warn, ".plt/dialyzer.plt"}]
]
end
def application do
[
extra_applications: [:logger],
mod: {SmartCity.Registry.Application, []}
]
end
defp deps do
[
# Smart City must be unpinned when registry is retired in favor of Discovery API using the event stream
{:smart_city, "~> 3.1"},
{:jason, "~> 1.1"},
{:redix, "~> 0.9"},
{:dialyxir, "~> 1.0.0-rc.6", only: [:dev], runtime: false},
{:ex_doc, "~> 0.19", only: :dev},
{:credo, "~> 1.1", only: [:dev, :test, :integration], runtime: false},
{:divo, "~> 1.1", only: [:dev, :test, :integration]},
{:placebo, "~> 1.2", only: [:dev, :test, :integration]},
{:mix_test_watch, "~> 0.9", only: :dev, runtime: false},
{:checkov, "~> 0.4", only: :test}
]
end
defp description do
"A library for Dataset, Organization modules in Smart City"
end
defp package do
[
maintainers: ["smartcitiesdata"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://www.github.com/smartcitiesdata/smart_city_registry"}
]
end
defp docs do
[
main: "readme",
source_url: "https://github.com/smartcitiesdata/smart_city_registry",
extras: [
"README.md"
],
groups_for_modules: groups_for_modules()
]
end
defp groups_for_modules do
[
Structs: [
SmartCity.Registry.Dataset.Business,
SmartCity.Registry.Dataset.Metadata,
SmartCity.Registry.Dataset.Technical
]
]
end
defp elixirc_paths(env) when env in [:test, :integration], do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp test_paths(:integration), do: ["test/integration"]
defp test_paths(_), do: ["test/unit"]
end