-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
119 lines (111 loc) · 2.94 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
117
118
119
defmodule Dawdle.MixProject do
use Mix.Project
@version "0.7.0"
def project do
[
app: :dawdle,
version: @version,
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
docs: docs(),
deps: deps(),
aliases: aliases(),
source_url: "https://github.com/hippware/dawdle",
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.html": :test
],
dialyzer: [
flags: [
:error_handling,
:race_conditions,
:underspecs,
:unknown,
:unmatched_returns
],
ignore_warnings: "dialyzer_ignore.exs",
list_unused_filters: true
]
]
end
def application do
[
extra_applications: [:logger],
mod: {Dawdle.Application, []},
env: [
backend: {:system, :module, "DAWDLE_BACKEND", Dawdle.Backend.Local},
start_pollers: {:system, :boolean, "DAWDLE_START_POLLERS", false},
"Elixir.Dawdle.Backend.SQS": [
region: {:system, "DAWDLE_SQS_REGION", "us-west-2"},
queue_url: {:system, "DAWDLE_SQS_QUEUE_URL", ""}
]
]
]
end
defp deps do
[
{:backoff, "~> 1.1"},
{:confex, "~> 3.4"},
{:configparser_ex, "~> 4.0", only: [:dev, :test]},
{:credo, "~> 1.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0.0-rc.6", only: [:dev], runtime: false},
{:eventually, "~> 1.0", only: :test},
{:ex_aws, "~> 2.0"},
{:ex_aws_sqs, "~> 3.0"},
{:ex_check, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.0.0", only: [:dev, :test]},
{:excoveralls, "~> 0.10", only: :test},
{:faker, "~> 0.12", only: :test},
{:hackney, "~> 1.7"},
{:mock, "~> 0.3", only: :test},
{:module_config, "~> 1.0"},
{:poison, "~> 3.0 or ~> 4.0"},
{:sweet_xml, "~> 0.6"},
{:telemetry, "~> 0.4.0"}
]
end
defp aliases do
[
ci: "check --except dialyzer"
]
end
defp description do
"""
Dawdle weaponizes Amazon SQS for use in your Elixir applications. Use it
when you want to handle something later, or, better yet, when you want
someone else to handle it.
"""
end
defp package do
[
maintainers: ["Bernard Duggan", "Phil Toland"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/hippware/dawdle"}
]
end
defp docs do
[
source_ref: "v#\{@version\}",
main: "readme",
extras: ["README.md"],
groups_for_modules: [
API: [
Dawdle,
Dawdle.Client,
Dawdle.Handler
],
"Backend Implementation": [
Dawdle.Backend,
Dawdle.Backend.Local,
Dawdle.Backend.SQS,
Dawdle.MessageEncoder,
Dawdle.MessageEncoder.Term
]
]
]
end
end