-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmix.exs
More file actions
84 lines (75 loc) · 1.69 KB
/
mix.exs
File metadata and controls
84 lines (75 loc) · 1.69 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
77
78
79
80
81
82
83
84
# SPDX-FileCopyrightText: None
# SPDX-License-Identifier: CC0-1.0
defmodule CircularBuffer.MixProject do
use Mix.Project
@version "1.0.0"
@description "General purpose circular buffer"
@source_url "https://github.com/elixir-toniq/circular_buffer"
def project do
[
app: :circular_buffer,
version: @version,
elixir: "~> 1.8",
deps: deps(),
description: @description,
package: package(),
source_url: @source_url,
docs: docs(),
dialyzer: dialyzer()
]
end
def application do
[]
end
def cli do
[
preferred_envs: %{
dialyzer: :test,
docs: :docs,
"hex.build": :docs,
"hex.publish": :docs,
credo: :test
}
]
end
defp deps do
[
{:propcheck, "~> 1.2", only: :test},
{:credo, "~> 1.5", only: :test, runtime: false},
{:ex_doc, "~> 0.19", only: :docs, runtime: false},
{:dialyxir, "~> 1.4", only: :test, runtime: false}
]
end
defp package do
[
files: [
"CHANGELOG.md",
"lib",
"LICENSES",
"mix.exs",
"README.md",
"REUSE.toml"
],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Changelog" => "#{@source_url}/blob/main/CHANGELOG.md",
"REUSE Compliance" =>
"https://api.reuse.software/info/github.com/elixir-toniq/circular_buffer"
}
]
end
defp docs do
[
extras: ["CHANGELOG.md"],
main: "CircularBuffer",
source_ref: "v#{@version}",
source_url: @source_url
]
end
defp dialyzer() do
[
flags: [:missing_return, :extra_return, :unmatched_returns, :error_handling]
]
end
end