-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
63 lines (58 loc) · 1.44 KB
/
mix.exs
File metadata and controls
63 lines (58 loc) · 1.44 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
56
57
58
59
60
61
62
63
defmodule QueryStats.MixProject do
use Mix.Project
def project do
[
app: :query_stats,
version: "0.1.1",
description: "Track Ecto queries in your test suite",
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
preferred_cli_env: ["test.all": :test],
dialyzer: [
plt_add_apps: [:mix]
],
package: package(),
source_url: "https://github.com/DylanBlakemore/query_stats",
homepage_url: "https://github.com/DylanBlakemore/query_stats",
test_coverage: [
summary: [threshold: 95]
]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp package() do
[
files: ~w(lib .formatter.exs mix.exs README* LICENSE* CHANGELOG*),
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/DylanBlakemore/query_stats"}
]
end
defp deps do
[
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:telemetry_metrics, "~> 0.6"}
]
end
defp aliases do
[
"test.lint": [
"credo --strict",
"format --check-formatted --dry-run",
"dialyzer"
],
"test.all": [
"test --cover --export-coverage default",
"test.coverage",
"test.lint"
]
]
end
end