-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmix.exs
88 lines (80 loc) · 2.13 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
defmodule Maestro.Mixfile do
use Mix.Project
@version "0.3.4"
@source_url "https://github.com/toniqsystems/maestro"
def project do
[
app: :maestro,
version: @version,
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
package: package(),
description: description(),
deps: deps(),
name: "Maestro",
source_url: @source_url,
docs: [
source_url: @source_url,
extras: ["README.md"]
],
dialyzer: [ignore_warnings: "dialyzer.ignore-warnings"],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.html": :test,
"coveralls.post": :test,
"coveralls.travis": :test
]
]
end
def application do
[
mod: {Maestro.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:ecto, "~> 3.0"},
{:ecto_sql, "~> 3.0"},
{:postgrex, ">= 0.0.0"},
{:ecto_hlclock, "~> 0.1"},
{:jason, "~> 1.1"},
{:mock, "~> 0.3", only: :test, runtime: false},
{:credo, "~> 1.0", only: [:dev, :test]},
{:stream_data, "~> 0.3", only: [:test]},
{:dialyxir, "~> 0.5", only: [:dev], runtime: false},
{:benchee, "~> 1.0", only: :dev},
{:ex_doc, "~> 0.16", only: :dev},
{:excoveralls, "~> 0.8", only: :test}
]
end
defp description do
"""
Maestro: event sourcing
"""
end
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
defp package do
[
name: :maestro,
files: ["lib", "mix.exs", "README.md"],
maintainers: ["Neil Menne", "Chris Keathley", "Brent Spell"],
licenses: ["Apache 2.0"],
links: %{
"GitHub" => @source_url,
"Docs" => "http://hexdocs.pm/maestro"
}
]
end
end