-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
69 lines (62 loc) · 1.83 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
defmodule BuildkiteTestCollector.MixProject do
use Mix.Project
@moduledoc false
@version "0.3.0"
def version, do: @version
@collector_name :buildkite_test_collector
def collector_name, do: "elixir-#{@collector_name}"
def project do
[
app: @collector_name,
description: "Official Buildkite Test Analytics Collector",
version: @version,
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
consolidate_protocols: Mix.env() != :test
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp package do
[
maintainers: [
"Josh Price <josh@alembic.com.au>",
"James Harton <james.harton@alembic.com.au>"
],
licenses: ["MIT"],
links: %{
"Source" => "https://github.com/buildkite/test_collector_elixir",
"Homepage" => "https://buildkite.com/test-analytics"
},
source_url: "https://github.com/buildkite/test_collector_elixir",
homepage_url: "https://buildkite.com/test-analytics"
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:castore, "~> 1.0"},
{:ecto, "~> 3.8"},
{:jason, "~> 1.3"},
{:mint, "~> 1.4"},
{:tesla, "~> 1.4"},
{:telemetry, "~> 1.1"},
# Dev/test
{:credo, "~> 1.6", only: [:dev, :test]},
{:ex_doc, ">= 0.0.0", only: [:dev, :test]},
{:doctor, "~> 0.18", only: [:dev, :test]},
{:git_ops, "~> 2.4", only: [:dev, :test], runtime: false},
{:mimic, "~> 1.7", only: :test}
]
end
end