-
Notifications
You must be signed in to change notification settings - Fork 11
/
mix.exs
61 lines (57 loc) · 1.56 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
defmodule UltimateElixirCI.MixProject do
use Mix.Project
def project do
[
app: :elixir_starting_point,
version: "0.1.0",
elixir: "~> 1.12",
consolidate_protocols: Mix.env() != :test,
deps: deps(),
aliases: aliases(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
check: :test,
coveralls: :test,
"coveralls.detail": :test,
"coveralls.html": :test
],
dialyzer: [
ignore_warnings: ".dialyzer_ignore.exs",
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
flags: [:error_handling, :unknown],
# Error out when an ignore rule is no longer useful so we can remove it
list_unused_filters: true
]
]
end
def application do
[]
end
defp deps do
[
{:credo, "~> 1.7.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.2", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18.0", only: [:dev, :test], runtime: false},
{:sobelow, "~> 0.11", only: :dev}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to install project dependencies and perform other setup tasks, run:
#
# $ mix setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
check: [
"clean",
"deps.unlock --check-unused",
"compile --warnings-as-errors",
"format --check-formatted",
"deps.unlock --check-unused",
"test --warnings-as-errors",
"credo"
]
]
end
end