-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
116 lines (107 loc) · 3.67 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
defmodule Gateway.Mixfile do
use Mix.Project
# Must be a top-level folder in order not to break any relative links.
@docs_output "doc.output"
def project do
[
app: :gateway,
name: "Reactive Interaction Gateway",
version: "0.9.9",
description: description(),
package: package(),
source_url: "https://github.com/Accenture/reactive-interaction-gateway",
homepage_url: "https://accenture.github.io/reactive-interaction-gateway",
docs: docs(),
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
"coveralls": :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
aliases: aliases(),
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {Gateway.Application, []},
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
{:phoenix, "~> 1.3.0"},
{:phoenix_pubsub, "~> 1.0"},
{:gettext, "~> 0.11"},
{:cowboy, "~> 1.0"},
{:httpoison, "~> 0.13.0"},
{:joken, "~> 1.4"},
{:bypass, "~> 0.8.1", only: :test},
{:excoveralls, "~> 0.6.2", only: [:dev, :test]},
{:brod, "~> 2.2"},
{:supervisor3, "~> 1.1"},
{:poison, "~> 2.0 or ~> 3.0"},
{:credo, "~> 0.7", only: [:dev, :test]},
{:dialyxir, "~> 0.5", only: [:dev, :test]},
{:timex, "~> 3.1.22"},
{:distillery, "~> 1.4"},
{:stubr, "~> 1.5.0", only: :test},
{:murmur, "~> 1.0"}, # for Kafka, partition from MurmurHash(key)
{:uuid, "~> 1.1"},
{:ex2ms, "~> 1.0"}, # Elixir-compatible :ets.fun2ms/1
{:ex_doc, "~> 0.16", only: :dev, runtime: false},
{:floki, "~> 0.18.1", runtime: false}, # HTML parser
{:confex, "~> 3.3"}, # Read and use application configuration from environment variables
]
end
defp description do
"""
RIG, the Reactive Interaction Gateway, provides an easy (and scaleable) way to push messages
from backend services to connected frontends (and vice versa).
"""
end
defp package do
[
name: "rig",
maintainers: ["Kevin Bader", "Mario Macai", "Martin Lofaj"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/Accenture/reactive-interaction-gateway"},
files: ["lib", "priv", "mix.exs", "*.md", "LICENSE", "doc/configuration.md"],
]
end
defp docs do
[
output: @docs_output,
extras: [
"README.md": [title: "README"],
"doc/motivation.md": [title: "Why we built it"],
"doc/configuration.md": [title: "Configuration"],
"CODE_OF_CONDUCT.md": [title: "Code of Conduct"],
"CONTRIBUTING.md": [title: "Contributing"],
"doc/architecture/decisions/0001-record-architecture-decisions.md": [group: "Architecture Decisions"],
"doc/architecture/decisions/0002-don-t-check-for-functionclauseerror-in-tests.md": [group: "Architecture Decisions"],
"doc/architecture/decisions/0003-for-config-prefer-prefix-over-nesting-and-don-t-hide-defaults-in-code.md": [group: "Architecture Decisions"],
],
main: "README",
]
end
defp aliases do
[
docs: ["docs", "docs.repair_links #{@docs_output}"],
]
end
end