-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
138 lines (124 loc) · 3.58 KB
/
mix.exs
File metadata and controls
138 lines (124 loc) · 3.58 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
129
130
131
132
133
134
135
136
137
138
defmodule Eliot.MixProject do
use Mix.Project
def project do
[
app: :eliot,
version: "0.2.0",
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
description: "Production-ready IoT data ingestion system built with Elixir/OTP",
package: package(),
name: "Eliot",
source_url: "https://github.com/christimahu/eliot",
homepage_url: "https://bonsoireliot.com",
# Test configuration
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.lcov": :test
],
# Documentation configuration
docs: [
main: "Eliot",
extras: [
"README.md",
"CODE_OF_CONDUCT.md",
"CONTRIBUTING.md",
"TESTING.md",
"CHANGELOG.md",
"LICENSE"
],
output: "web/docs",
epub: true,
authors: ["Christi Mahu"],
groups_for_modules: [
"Core Components": [
Eliot,
Eliot.Application
],
"Error Handling": [
Eliot.ErrorHandler
],
"Logging & Observability": [
Eliot.Logger
],
"Message Processing": [
Eliot.MessageParser
]
]
]
]
end
def application do
[
mod: {Eliot.Application, []},
extra_applications: [:logger, :crypto, :ssl]
]
end
defp deps do
[
# Core Dependencies - only keep what we actually use
{:tortoise, "~> 0.10"},
{:jason, "~> 1.4"},
# Observability and Monitoring
{:telemetry_metrics, "~> 0.6"},
{:telemetry_poller, "~> 1.0"},
{:telemetry_metrics_prometheus, "~> 1.0"},
# Development Dependencies
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
{:mix_test_watch, "~> 1.1", only: [:dev], runtime: false},
{:mix_audit, "~> 2.0", only: [:dev, :test], runtime: false},
# Test Dependencies
{:excoveralls, "~> 0.18", only: :test}
]
end
defp package do
[
name: "eliot",
maintainers: ["Christi Mahu"],
licenses: ["GPL-3.0-or-later"],
links: %{
"GitHub" => "https://github.com/christimahu/eliot",
"Website" => "https://bonsoireliot.com"
},
files:
~w(lib .formatter.exs mix.exs README.md CHANGELOG.md CONTRIBUTING.md CODE_OF_CONDUCT.md TESTING.md LICENSE)
]
end
defp aliases do
[
# Development workflow
setup: ["deps.clean --all", "deps.get", "compile"],
# Quality assurance - CI-friendly without warnings-as-errors for deps
check: [
"format --check-formatted",
"credo --strict",
"test --cover"
],
# Individual quality checks
"check.format": ["format --check-formatted"],
"check.credo": ["credo --strict"],
"check.deps": ["deps.unlock --check-unused"],
# Test aliases
test: ["test --cover"],
"test.watch": ["test.watch --cover"],
"test.integration": ["test --only integration"],
"test.unit": ["test --exclude integration"],
"test.coverage": ["coveralls.html"],
"test.coverage.detail": ["coveralls.detail"],
# CI-specific commands that handle warnings properly
"ci.check": [
"format --check-formatted",
"credo --strict",
"test --cover --export-coverage default",
"coveralls.lcov"
]
]
end
end