-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
88 lines (78 loc) · 2.07 KB
/
mix.exs
File metadata and controls
88 lines (78 loc) · 2.07 KB
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 ExOura.MixProject do
use Mix.Project
@version "2.0.2"
@github_url "https://github.com/tgrk/ex_oura"
def project do
[
app: :ex_oura,
description: description(),
package: package(),
version: @version,
elixir: "~> 1.17",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
test_coverage: [tool: ExCoveralls],
aliases: aliases()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp aliases do
[
coverage: &coverage/1
]
end
defp coverage(_) do
Mix.shell().cmd("MIX_ENV=test mix coveralls --color")
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:req, "~> 0.5"},
{:mock, "~> 0.3.8", only: :test},
{:exvcr, "~> 0.16", only: :test},
{:excoveralls, "~> 0.18", only: :test},
{:ex_doc, "~> 0.37", only: :dev, runtime: false},
{:oapi_generator, "~> 0.2", only: [:dev, :test], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:styler, "~> 1.4", only: [:dev, :test], runtime: false}
]
end
defp description do
"""
An Elixir library for Oura API
"""
end
defp package do
[
name: "ex_oura",
maintainers: ["Martin Wiso"],
files: ~w(lib .formatter.exs mix.exs README* LICENSE* CHANGELOG*),
licenses: ["MIT"],
links: %{
"GitHub" => @github_url,
"Issues" => "https://github.com/tgrk/ex_oura/issues"
}
]
end
defp docs do
[
main: "readme",
name: "ex_oura",
source_ref: "v#{@version}",
canonical: "http://hexdocs.pm/ex_oura",
source_url: @github_url,
extras: ["README.md", "CHANGELOG.md", "LICENSE"]
]
end
end