Current section

Files

Jump to

mix.exs

defmodule SmartCity.Registry.MixProject do
use Mix.Project
def project do
[
app: :smart_city_registry,
version: "3.2.2",
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())
]
end
def application do
[
extra_applications: [:logger],
mod: {SmartCity.Registry.Application, []}
]
end
defp deps do
[
{:smart_city, "~> 2.1"},
{:jason, "~> 1.1"},
{:redix, "~> 0.9"},
{:dialyxir, "~> 0.5", only: :dev},
{: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},
{:husky, "~> 1.0", only: :dev, runtime: false}
]
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.Dataset.Business,
SmartCity.Dataset.Metadata,
SmartCity.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