Repository navigation
Expand file tree
/
Copy pathmix.exs
More file actions
55 lines (50 loc) · 1.35 KB
/
Copy pathmix.exs
File metadata and controls
55 lines (50 loc) · 1.35 KB
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
defmodule ExUnitflaky.MixProject do
use Mix.Project
def project do
[
app: :ex_unit_flaky,
version: "0.1.0",
elixir: "~> 1.16",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
test_pattern: "*_test.exs",
dialyzer: [
plt_add_apps: [:ex_unit, :mix, :credo],
list_unused_filters: true,
flags: [
:no_opaque,
:unknown,
:unmatched_returns,
:extra_return,
:missing_return,
:error_handling
]
]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def cli do
[preferred_envs: ["test.flakes": :test]]
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
[
{:exqlite, "~> 0.23"},
# Code quality
{:ex_check, "~> 0.16.0", only: [:dev], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:mix_audit, "~> 2.1", only: [:dev, :test], runtime: false},
{:doctor, "~> 0.21.0", only: :dev},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}
]
end
end