forked from spandex-project/spandex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
72 lines (65 loc) · 1.71 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
defmodule Spandex.Mixfile do
use Mix.Project
@source_url "https://github.com/spandex-project/spandex"
@version "3.2.0"
def project do
[
app: :spandex,
version: @version,
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
name: "Spandex",
docs: docs(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
"coveralls.circle": :test,
coveralls: :test
],
deps: deps()
]
end
defp description do
"""
A platform agnostic tracing library. Contributors welcome.
"""
end
defp package do
[
name: :spandex,
maintainers: ["Greg Mefford"],
licenses: ["MIT License"],
links: %{
"GitHub" => @source_url,
"Sponsor" => "https://github.com/sponsors/GregMefford"
}
]
end
defp docs do
[
main: "readme",
logo: "static/spandex.png",
source_url: @source_url,
source_ref: @version,
extras: ["CHANGELOG.md", "README.md"],
skip_undefined_reference_warnings_on: ["CHANGELOG.md"]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:benchee, "~> 1.0", only: [:dev, :test]},
{:credo, "~> 1.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:makeup, "~> 1.0", only: :dev},
{:makeup_elixir, "~> 0.16", only: :dev},
{:decorator, "~> 1.2", optional: true},
{:plug, "~> 1.0"}
]
end
end