Current section

Files

Jump to
nldoc_test mix.exs
Raw

mix.exs

defmodule NLdoc.Test.MixProject do
use Mix.Project
@name "NLdoc.Test"
@source_url "https://gitlab.com/toegang-voor-iedereen/backend/lib/nldoc_test"
def project do
[
app: :nldoc_test,
version: "3.0.4",
elixir: "~> 1.17",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_options: [warnings_as_errors: true],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.cobertura": :test
],
dialyzer: [plt_add_apps: [:ex_unit]],
test_coverage: [tool: ExCoveralls],
# Docs and publishing
name: @name,
source_url: @source_url,
description: "A utility library for NLdoc providing various test helpers.",
docs: &docs/0,
package: [
licenses: ["EUPL-1.2"],
links: %{
"EUPL-1.2 License" => "https://joinup.ec.europa.eu/software/page/eupl",
"Source" => @source_url
}
]
]
end
defp docs do
[
extras: ["README.md", "CHANGELOG.md"]
]
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
[
{:jason, "~> 1.4"},
# Testing: coverage, JUnit-style test reports for CI, mocking and snapshot testing.
{:excoveralls, "~> 0.18", only: :test},
{:mimic, "~> 1.7", only: :test},
# Linting & do
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
# Dependency auditing
{:mix_audit, "~> 2.1", only: [:dev, :test], runtime: false},
# Docs
{:ex_doc, "~> 0.37", only: :dev, runtime: false}
]
end
end