-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmix.exs
78 lines (74 loc) · 2.23 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
defmodule Hindsight.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
start_permanent: Mix.env() == :prod,
deps: deps(),
releases: releases(),
aliases: aliases(),
preferred_cli_env: ["test.unit": :test, "test.int": :test],
dialyzer: [
plt_add_apps: [:ex_unit, :eex],
plt_file: {:no_warn, ".dialyzer/#{System.version()}.plt"}
]
]
end
defp releases do
[
orchestrate: [
version: {:from_app, :service_orchestrate},
include_executables_for: [:unix],
applications: [service_orchestrate: :permanent]
],
receive: [
version: {:from_app, :service_receive},
include_executables_for: [:unix],
applications: [service_receive: :permanent]
],
gather: [
version: {:from_app, :service_gather},
include_executables_for: [:unix],
applications: [service_gather: :permanent]
],
profile: [
version: {:from_app, :service_profile},
include_executables_for: [:unix],
applications: [service_profile: :permanent]
],
aggregate: [
version: {:from_app, :service_aggregate},
include_executables_for: [:unix],
applications: [service_aggregate: :permanent]
],
broadcast: [
version: {:from_app, :service_broadcast},
include_executables_for: [:unix],
applications: [service_broadcast: :permanent]
],
persist: [
version: {:from_app, :service_persist},
include_executables_for: [:unix],
applications: [service_persist: :permanent]
],
acquire: [
version: {:from_app, :service_acquire},
include_executables_for: [:unix],
applications: [service_acquire: :permanent]
]
]
end
defp deps do
[
{:cowlib, "~> 2.8.0", override: true}
]
end
defp aliases() do
[
"test.unit": "test --exclude integration --exclude performance --exclude e2e --color",
"test.int": "test --only integration --color",
"test.e2e": "cmd --app platform_runner mix test.integration --only e2e --color",
"test.perf": "cmd --app platform_runner mix test.integration --only performance --color"
]
end
end