-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
193 lines (181 loc) · 5.7 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
defmodule SmeeView.MixProject do
use Mix.Project
def project do
[
app: :smee_view,
version: "0.2.1",
elixir: "~> 1.14",
description: "SAML metadata parsing extension for Smee",
package: package(),
name: "SmeeView",
source_url: "https://github.com/Digital-Identity-Labs/smee_view",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
test_coverage: [
tool: ExCoveralls
],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
docs: [
main: "readme",
# logo: "path/to/logo.png",
extras: ["README.md", "LICENSE"],
groups_for_modules: [
"Views / Collections": view_modules(),
"Aspects / Items": aspect_modules(),
"Protocols & Behaviours": protocol_modules()
]
],
deps: deps(),
compilers: Mix.compilers() ++ [:rambo], # Needed until issue fixed in Rambo
elixirc_paths: elixirc_paths(Mix.env)
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:smee, "~> 0.4"},
{:sweet_xml, "~> 0.7"},
{:iteraptor, "~> 1.14"},
{:jason, "~> 1.4"},
{:rambo, "~> 0.3.4"}, # temporary fix
{:apex, "~> 1.2", only: [:dev, :test], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.14 and >= 0.14.4", only: [:dev, :test]},
{:benchee, "~> 1.3", only: [:dev, :test]},
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
{:earmark, "~> 1.4", only: :dev, runtime: false},
{:dialyxir, "~> 1.4", only: [:dev], runtime: false},
{:doctor, "~> 0.21", only: :dev, runtime: false},
{:table_rex, "~> 4.0"}
]
end
defp package() do
[
licenses: ["Apache-2.0"],
links: %{
"GitHub" => "https://github.com/Digital-Identity-Labs/smee_view"
}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support", "priv"]
defp elixirc_paths(_), do: ["lib", "priv"]
defp protocol_modules do
[SmeeView.Protocols.Aspect, SmeeView.Behaviours.Aspect, SmeeView.Behaviours.View]
end
defp view_modules do
[
SmeeView.ArtifactResolutionServices,
SmeeView.AspectFilter,
SmeeView.AssertionConsumerServices,
SmeeView.AssertionIDRequestServices,
SmeeView.AttributeConsumingServices,
SmeeView.AttributeServices,
SmeeView.Attributes,
SmeeView.Contacts,
SmeeView.Descriptions,
SmeeView.DigestMethods,
SmeeView.DiscoHints,
SmeeView.DiscoUIs,
SmeeView.DiscoveryResponses,
SmeeView.Displaynames,
SmeeView.Domains,
SmeeView.EncryptionMethods,
SmeeView.Entities,
SmeeView.EntityAttributes,
SmeeView.EntityFilter,
SmeeView.Geolocations,
SmeeView.IdPs,
SmeeView.InformationURLs,
SmeeView.Keys,
SmeeView.Keywords,
SmeeView.Logos,
SmeeView.ManageNameidServices,
SmeeView.NameIDFormats,
SmeeView.NameidMappingServices,
SmeeView.Networks,
SmeeView.Organizations,
SmeeView.OrganizationDisplaynames,
SmeeView.OrganizationNames,
SmeeView.OrganizationURLs,
SmeeView.PrivacyURLs,
SmeeView.Protocols,
SmeeView.PublicationPath,
SmeeView.Registration,
SmeeView.RegistrationPolicies,
SmeeView.RequestInitiators,
SmeeView.RequestedAttributes,
SmeeView.Roles,
SmeeView.SPs,
SmeeView.Scopes,
SmeeView.ServiceDescriptions,
SmeeView.ServiceNames,
SmeeView.Services,
SmeeView.SigningMethods,
SmeeView.SingleLogoutServices,
SmeeView.SingleSignonServices
]
end
defp aspect_modules do
[
SmeeView.Aspects.ArtifactResolutionService,
SmeeView.Aspects.AspectCommon,
SmeeView.Aspects.AspectTools.Text,
SmeeView.Aspects.AssertionConsumerService,
SmeeView.Aspects.AssertionIDRequestService,
SmeeView.Aspects.Attribute,
SmeeView.Aspects.AttributeConsumingService,
SmeeView.Aspects.AttributeService,
SmeeView.Aspects.Contact,
SmeeView.Aspects.Description,
SmeeView.Aspects.DigestMethod,
SmeeView.Aspects.DiscoHints,
SmeeView.Aspects.DiscoUI,
SmeeView.Aspects.DiscoveryResponse,
SmeeView.Aspects.Displayname,
SmeeView.Aspects.Domain,
SmeeView.Aspects.EncryptionMethod,
SmeeView.Aspects.Entity,
SmeeView.Aspects.EntityAttribute,
SmeeView.Aspects.Geolocation,
SmeeView.Aspects.IdP,
SmeeView.Aspects.InformationURL,
SmeeView.Aspects.Key,
SmeeView.Aspects.Keywords,
SmeeView.Aspects.Logo,
SmeeView.Aspects.ManageNameidService,
SmeeView.Aspects.NameIDFormat,
SmeeView.Aspects.NameidMappingService,
SmeeView.Aspects.Network,
SmeeView.Aspects.Organization,
SmeeView.Aspects.OrganizationDisplayname,
SmeeView.Aspects.OrganizationName,
SmeeView.Aspects.OrganizationURL,
SmeeView.Aspects.PrivacyURL,
SmeeView.Aspects.Protocol,
SmeeView.Aspects.Publication,
SmeeView.Aspects.Registration,
SmeeView.Aspects.RegistrationPolicy,
SmeeView.Aspects.RequestInitiator,
SmeeView.Aspects.RequestedAttribute,
SmeeView.Aspects.SP,
SmeeView.Aspects.Scope,
SmeeView.Aspects.ServiceDescription,
SmeeView.Aspects.ServiceName,
SmeeView.Aspects.SigningMethod,
SmeeView.Aspects.SingleLogoutService,
SmeeView.Aspects.SingleSignonService,
]
end
end