-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
101 lines (89 loc) · 2.21 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
defmodule Openstex.Mixfile do
use Mix.Project
@version "0.4.1"
@elixir_versions ">= 1.4.0"
@hackney_versions ">= 1.6.0"
def project do
[
app: :openstex,
name: "Openstex",
version: @version,
elixir: @elixir_versions,
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
source_url: "https://github.com/stephenmoloney/openstex",
description: description(),
package: package(),
aliases: aliases(),
deps: deps(),
docs: docs()
]
end
def application do
[
mod: [],
extra_applications: [:crypto, :logger]
]
end
defp deps do
[
# deps
{:jason, "~> 1.0"},
{:mapail, "~> 1.0"},
{:httpipe, "~> 0.9"},
{:hackney, @hackney_versions},
# dev/test deps
{:markdown, github: "devinus/markdown", only: [:dev], runtime: false},
{:ex_doc, "~> 0.18", only: [:dev], runtime: false},
{:credo, "~> 0.9.0-rc8", only: [:dev, :test], runtime: false},
{:bypass, "~> 0.8", only: [:test]},
{:httpipe_adapters_hackney, "~> 0.11", only: [:test]},
{:temp, "~> 0.4", only: [:test]}
]
end
defp description do
~s"""
A client in elixir for making requests to openstack compliant apis.
"""
end
defp package do
%{
licenses: ["MIT"],
maintainers: ["Stephen Moloney"],
links: %{"GitHub" => "https://github.com/stephenmoloney/openstex"},
files: ~w(lib mix.exs CHANGELOG* README* LICENCE*)
}
end
defp docs do
[
main: "Openstex",
extras: []
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp aliases do
[
format: [
"format #{format_args(:lib)}",
"format #{format_args(:test)}"
],
prep: [
"clean",
"format",
"compile",
"credo #{credo_args()}"
]
]
end
defp credo_args do
"--strict --ignore cyclomaticcomplexity,longquoteblocks,maxlinelength"
end
defp format_args(:lib) do
"mix.exs lib/**/*.{ex,exs}"
end
defp format_args(:test) do
"mix.exs test/**/*.{ex,exs} test/**/**/*.{ex,exs}"
end
end