-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
79 lines (73 loc) · 1.87 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
defmodule CastorEDC.MixProject do
use Mix.Project
@version "0.4.1"
@source_url "https://github.com/basbl/ex_castor_edc/"
@homepage_url "https://www.castoredc.com/"
def project do
[
name: "ExCastorEDC",
app: :ex_castor_edc,
version: @version,
elixir: "~> 1.13",
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.html": :test,
"coveralls.post": :test,
vcr: :test,
"vcr.delete": :test,
"vcr.check": :test,
"vcr.show": :test
],
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: docs()
]
end
defp docs do
[
main: "CastorEDC",
source_ref: @version,
source_url: @source_url,
homepage_url: @homepage_url,
groups_for_modules: [
Common: ~r"CastorEDC.Common",
"Data Collection": ~r"CastorEDC.DataCollection",
"Study Protocol": ~r"CastorEDC.StudyProtocol"
],
extras: ["notebook/getting_started.livemd"]
]
end
defp package do
[
description: "Elixir wrapper for the Castor EDC API",
maintainers: ["Bas Bloembergen"],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Homepage" => @homepage_url
}
]
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
[
{:jason, ">= 1.0.0"},
{:castore, "~> 1.0"},
{:tesla, "~> 1.4"},
{:hackney, "~> 1.13"},
{:exvcr, "~> 0.11", only: :test},
{:excoveralls, "~> 0.10", only: :test},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.27", only: :dev, runtime: false}
]
end
end