This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
63 lines (58 loc) · 1.88 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
# credo:disable-for-this-file Credo.Check.Readability.Specs
defmodule GettextPrintf.MixProject do
@moduledoc false
use Mix.Project
def project do
[
app: :gettext_printf,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps(),
build_embedded: Mix.env() == :prod or System.get_env("BUILD_EMBEDDED") in ["1", "true"],
test_coverage: [tool: ExCoveralls],
dialyzer:
[
ignore_warnings: ".dialyzer_ignore.exs",
list_unused_filters: true,
plt_add_apps: [:mix]
] ++
if System.get_env("DIALYZER_PLT_PRIV", "false") in ["1", "true"] do
[plt_file: {:no_warn, "priv/plts/dialyzer.plt"}]
else
[]
end,
elixirc_paths: elixirc_paths(Mix.env()),
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.html": :test,
"coveralls.json": :test,
"coveralls.post": :test,
"coveralls.xml": :test
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:dev), do: ["lib", "test/support"]
defp elixirc_paths(_env), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:credo, "~> 1.4", runtime: false, only: [:dev]},
{:dialyxir, "~> 1.0", runtime: false, only: [:dev]},
{:excoveralls, "~> 0.4", runtime: false, only: [:test]},
{:ex_doc, "~> 0.24", runtime: false, only: [:dev, :test], override: true},
# TODO: Switch to released version
{:gettext, "~> 0.18", github: "elixir-gettext/gettext", branch: "main", override: true},
{:ex_cldr_print, "~> 0.4.0"}
]
end
end