Repository navigation
Expand file tree
/
Copy pathmix.exs
More file actions
92 lines (85 loc) · 2.48 KB
/
Copy pathmix.exs
File metadata and controls
92 lines (85 loc) · 2.48 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
defmodule ExGitEngine.Mixfile do
use Mix.Project
def project do
[
app: :ex_git_engine,
version: "0.15.1",
build_path: "_build",
config_path: "config/config.exs",
deps_path: "deps",
lockfile: "mix.lock",
elixir: "~> 1.15",
compilers: [:elixir_make] ++ Mix.compilers(),
make_args: ["--quiet"],
description:
"Elixir libgit2 wrapper with GenServer-based concurrent access and Git wire protocol",
package: package(),
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() != :test,
deps: deps(),
aliases: aliases(),
dialyzer: [
plt_add_apps: [:ex_unit, :logger, :telemetry, :stream_split],
ignore_warnings: ".dialyzer_ignore.exs"
],
test_coverage: [tool: ExCoveralls]
]
end
def application do
[mod: {ExGitEngine.Application, []}, extra_applications: [:logger]]
end
def cli do
[
preferred_envs: [
ci: :test,
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.json": :test
]
]
end
defp package do
[
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/full-stack-biz/ex_git_engine"},
files: ~w(lib c_src Makefile mix.exs LICENSE readme.md usage-rules.md)
]
end
#
# Helpers
#
defp deps do
[
{:reach, "~> 2.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:vibe_kit, "~> 0.1", only: [:dev, :test], runtime: false},
{:elixir_make, "~> 0.6"},
{:stream_split, "~> 0.1"},
{:telemetry, "~> 1.1"},
{:credo, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_dna, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_slop, "~> 0.4", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18.0", only: :test},
{:muex, "~> 0.8.1", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp aliases() do
[
muex: [
~s(muex_json --optimize --optimize-level balanced --coverage-guided --verbose --timeout 30000 --concurrency 1 --files "lib/ex_git_engine")
],
ci: [
"compile --warnings-as-errors",
"format --check-formatted",
"test",
"credo --strict",
"dialyzer",
"ex_dna --max-clones 0",
"reach.check --arch --smells"
]
]
end
end