This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmix.exs
68 lines (60 loc) · 1.57 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
defmodule CurrencyConversion.Mixfile do
@moduledoc false
use Mix.Project
@version "1.0.1"
def project do
[
app: :currency_conversion,
docs: docs(),
version: @version,
elixir: "~> 1.7",
description: description(),
package: package(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.travis": :test
],
dialyzer: [
plt_add_apps: [:httpotion, :jason]
]
]
end
defp description do
"""
Convert Money Amounts between currencies.
"""
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:money, "~> 1.2"},
{:httpotion, "~> 3.1", optional: true},
{:jason, "~> 1.1", optional: true},
{:mock, "~> 0.2", only: [:test]},
{:ex_doc, ">= 0.0.0", only: [:dev], runtime: false},
{:excoveralls, "~> 0.4", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:credo, "~> 1.0", only: [:dev, :test], runtime: false}
]
end
defp package do
[
name: :currency_conversion,
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Jonatan Männchen"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/jshmrtn/currency-conversion"}
]
end
def docs do
[source_ref: "v#{@version}", source_url: "https://github.com/jshmrtn/currency-conversion"]
end
end