-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
81 lines (75 loc) · 2.17 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
defmodule ExAwsConfigurator.MixProject do
use Mix.Project
def project do
[
app: :ex_aws_configurator,
version: get_version(),
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.github": :test,
"coveralls.html": :test
],
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
],
deps: deps(),
package: package(),
name: "ExAwsConfigurator",
description: "A json based SNS/SQS configurator for elixir/phoenix projects",
source_url: "https://github.com/petlove/ex_aws_configurator",
elixirc_paths: elixirc_paths(Mix.env()),
docs: [
source_ref: Mix.Project.config()[:version],
formatters: ["html"]
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:dev), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
env: [
account_id: {:system, "AWS_ACCOUNT_ID"},
queues: %{},
topics: %{}
]
]
end
defp get_version do
case File.read("VERSION") do
{:ok, version} -> String.trim(version)
_ -> "0.0.0-unknown"
end
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:credo, "~> 1.4", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:ex_aws, "~> 2.0"},
{:ex_aws_sns, "~> 2.2"},
{:ex_aws_sqs, "~> 3.2"},
{:ex_doc, "~> 0.23", only: :dev, runtime: false},
{:ex_machina, "~> 2.5.0", only: [:dev, :test]},
{:excoveralls, "~> 0.10", only: :test},
{:hackney, "~> 1.9"},
{:jason, "~> 1.2"},
{:sweet_xml, "~> 0.6"},
{:vex, "~> 0.8.0"}
]
end
defp package do
[
name: :ex_aws_configurator,
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/petlove/ex_aws_configurator"},
files: ~w(lib .formatter.exs mix.exs README* LICENSE* CHANGELOG* VERSION*)
]
end
end