-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
82 lines (74 loc) · 2.15 KB
/
mix.exs
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
defmodule ExIntegrationCoveralls.MixProject do
use Mix.Project
@source_url "https://github.com/yeshan333/ex_integration_coveralls"
def project do
[
app: :ex_integration_coveralls,
version: "0.9.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
name: "ExIntegrationCoveralls",
description: description(),
homepage_url: @source_url,
docs: [
main: "readme",
extras: ["README.md", "LICENSE"]
],
test_coverage: [tool: ExCoveralls],
preferred_cli_env:
cli_env_for(:test, [
"coveralls",
"coveralls.detail",
"coveralls.html",
"coveralls.json",
"coveralls.post"
])
]
end
defp cli_env_for(env, tasks) do
Enum.reduce(tasks, [], fn key, acc -> Keyword.put(acc, :"#{key}", env) end)
end
def application do
[
extra_applications: [:logger, :tools],
application: [:httpoison],
mod: {ExIntegrationCoveralls.Application, []}
]
end
defp elixirc_paths(:test), do: ["lib", "test/fixtures/test_missing.ex"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:poison, "~> 5.0 or ~> 4.0.1 or ~> 3.0"},
{:httpoison, "~> 1.8"},
{:plug_cowboy, "~> 2.5 or ~> 2.0"},
{:meck, "~> 0.8", only: :test},
{:mock, "~> 0.3.6", only: :test},
{:ex_doc, "~> 0.18", only: :dev},
{:excoveralls, "~> 0.13", only: :test},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:junit_formatter, "~> 3.4", only: [:test]},
{:husky,
git: "https://github.com/HammamSamara/husky-elixir.git",
branch: "master",
only: [:dev, :test],
runtime: false}
]
end
defp description() do
"A library for run-time system code line-level coverage analysis. You can use it to evulate the intergration test coverage."
end
defp package do
[
maintainers: ["yeshan333"],
licenses: ["MIT"],
links: %{
"Changelog" => @source_url <> "/blob/main/CHANGELOG.md",
"GitHub" => @source_url
}
]
end
end