-
Notifications
You must be signed in to change notification settings - Fork 5
/
mix.exs
88 lines (80 loc) · 2.24 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 Azure.MixProject do
use Mix.Project
@version "0.3.4"
@repo_url "https://github.com/joeapearson/elixir-azure"
def project do
[
app: :azure,
version: @version,
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: dialyzer(),
package: package(),
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :crypto, :eex]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:ex_machina, ">= 0.0.0", only: [:dev, :test]},
{:hackney, "~> 1.17"},
{:jason, "~> 1.2", optional: true},
{:poison, ">= 1.0.0", optional: true},
{:sweet_xml, "~> 0.7"},
{:tesla, "~> 1.4"},
{:timex, "~> 3.7"},
{:xml_builder, "~> 2.2"}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
description: "Azure storage",
links: %{"GitHub" => @repo_url},
licenses: ["MIT"],
files: ~w(lib .formatter.exs mix.exs README.md LICENSE.md CHANGELOG.md)
]
end
defp docs do
[
main: "readme",
extras: [
"README.md"
],
authors: [
"almirsarajcic",
"bettyblocks",
"chgeuer",
"joeapearson"
],
source_ref: "v#{@version}",
source_url: @repo_url,
api_reference: false
]
end
# Configures dialyzer (static analysis tool for Elixir / Erlang).
#
# The `dialyzer.plt` file takes a long time to generate first time round, so we store it in a
# custom location where it can then be easily cached during CI.
defp dialyzer do
[
plt_add_apps: [:eex, :mix, :jason],
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
end
end