-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
62 lines (52 loc) · 1.37 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
defmodule BuildPipeline.MixProject do
use Mix.Project
@escript_name :bp
def project do
[
app: :build_pipeline,
description: description(),
package: package(),
version: "0.0.14",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
escript: [main_module: BuildPipeline, name: escript_name(Mix.env()), app: nil]
]
end
defp package do
[
name: "build_pipeline",
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/Multiverse-io/build_pipeline"},
source_url: "https://github.com/Multiverse-io/build_pipeline"
]
end
defp description do
"A development tool for running commands with maximum possible concurrency, designed to speed up CI / CD build piplines by running mulitple independent build steps at once."
end
defp elixirc_paths(:test) do
["lib", "test/run/builders", "test/run/mocks", "test/run/support"]
end
defp elixirc_paths(_) do
["lib"]
end
defp escript_name(:prod) do
@escript_name
end
defp escript_name(env) do
:"#{@escript_name}_#{to_string(env)}"
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:jason, "~> 1.2"},
{:mimic, "~> 1.7.4", only: :test},
{:faker, "~> 0.17", only: :test}
]
end
end