-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
76 lines (68 loc) · 1.75 KB
/
mix.exs
File metadata and controls
76 lines (68 loc) · 1.75 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
64
65
66
67
68
69
70
71
72
73
74
75
76
defmodule ProgramFacts.MixProject do
use Mix.Project
@version "0.2.1"
@source_url "https://github.com/elixir-vibe/program_facts"
def project do
[
app: :program_facts,
version: @version,
elixir: "~> 1.19",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
dialyzer: [
plt_file: {:no_warn, "_build/dev/dialyxir_plt.plt"},
plt_add_apps: [:mix, :ex_unit]
],
description: "Generate Elixir programs with known structural facts for analyzer testing.",
package: package(),
docs: docs()
]
end
def application do
[
extra_applications: [:logger]
]
end
def cli do
[preferred_envs: [ci: :test]]
end
defp aliases do
[
ci: [
"compile --warnings-as-errors",
"format --check-formatted",
"credo --strict",
"ex_dna",
"dialyzer",
"test"
]
]
end
defp deps do
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.38", only: :dev, runtime: false},
{:ex_dna, "~> 1.1", only: [:dev, :test], runtime: false},
{:ex_slop, "~> 0.4", only: [:dev, :test], runtime: false},
{:libgraph, "~> 0.16", optional: true},
{:stream_data, "~> 1.1", optional: true}
]
end
defp package do
[
licenses: ["MIT"],
links: %{"GitHub" => @source_url},
files: ~w(lib mix.exs README.md CHANGELOG.md ROADMAP.md LICENSE .formatter.exs .credo.exs)
]
end
defp docs do
[
main: "ProgramFacts",
source_ref: "v#{@version}",
source_url: @source_url,
extras: ["README.md", "CHANGELOG.md", "ROADMAP.md", "LICENSE"]
]
end
end