-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
128 lines (120 loc) · 3.17 KB
/
Copy pathmix.exs
File metadata and controls
128 lines (120 loc) · 3.17 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
defmodule Systemd.MixProject do
use Mix.Project
@version "0.1.3"
@source_url "https://github.com/elixir-vibe/systemdkit"
def project do
[
app: :systemdkit,
version: @version,
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
description: "Pure Elixir tools for systemd unit files and D-Bus manager control",
package: package(),
docs: docs(),
deps: deps(),
aliases: aliases()
]
end
def application do
[
extra_applications: [:logger, :rebus]
]
end
def cli do
[
preferred_envs: [ci: :test]
]
end
defp deps do
[
{:ex_doc, "~> 0.38", only: :dev, runtime: false},
{:ex_slop, "~> 0.4", only: [:dev, :test], runtime: false},
{:reach, "~> 2.0", only: [:dev, :test], runtime: false},
{:ex_dna, "~> 1.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:credo, "~> 1.0", only: [:dev, :test], runtime: false},
{:nimble_parsec, "~> 1.4"},
{:rebus, "~> 0.2.0"},
{:vibe_kit, "== 0.1.2", only: [:dev, :test], runtime: false},
{:igniter, "~> 0.6", only: [:dev, :test], runtime: false}
]
end
defp package do
[
name: "systemdkit",
licenses: ["MIT"],
links: %{"GitHub" => @source_url},
files: ~w(lib guides examples .formatter.exs mix.exs README.md LICENSE CHANGELOG.md)
]
end
defp docs do
[
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
extras: [
"README.md",
"CHANGELOG.md",
"LICENSE",
"guides/xamal-style-deployment.md",
"guides/dbus-manager.md"
],
groups_for_extras: [Guides: ~r/guides\//],
groups_for_modules: [
"D-Bus": [
Systemd.DBus,
Systemd.DBus.Result,
Systemd.Manager,
Systemd.Signal,
Systemd.Properties
],
"Unit files": [
Systemd.UnitName,
Systemd.UnitFile,
Systemd.UnitFile.Blank,
Systemd.UnitFile.Builder,
Systemd.UnitFile.Comment,
Systemd.UnitFile.Directive,
Systemd.UnitFile.ParseError,
Systemd.UnitFile.Raw,
Systemd.UnitFile.Section,
Systemd.UnitFile.Span,
Systemd.UnitFile.ValidationError,
Systemd.UnitFile.Value
],
"Runtime structs": [
Systemd.Error,
Systemd.Job,
Systemd.JobStatus,
Systemd.ServiceState,
Systemd.SocketState,
Systemd.TimerState,
Systemd.Unit,
Systemd.UnitFileChange,
Systemd.UnitFileOperation,
Systemd.UnitFileStatus,
Systemd.UnitObject,
Systemd.UnitState
],
"Transient units": [
Systemd.TransientUnit,
Systemd.TransientUnit.AuxUnit,
Systemd.TransientUnit.Property
]
]
]
end
defp aliases() do
[
ci: [
"compile --warnings-as-errors",
"format --check-formatted",
"test",
"credo --strict",
"dialyzer",
"ex_dna --max-clones 0",
"reach.check --arch --smells"
]
]
end
end