-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
74 lines (66 loc) · 1.71 KB
/
mix.exs
File metadata and controls
74 lines (66 loc) · 1.71 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
defmodule Msg.MixProject do
use Mix.Project
@app :msg
@version "0.3.8"
@source_url "https://github.com/riddler/msg"
@deps [
# Docs - separated out to speed up dev compilcation
{:ex_doc, "~> 0.31", only: :docs, runtime: false},
# Development, Test, Local
{:castore, "~> 1.0", only: [:dev, :test]},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18", only: :test},
{:mox, "~> 1.1", only: :test},
# Actual dependencies
{:jason, "~> 1.4"},
{:oauth2, "~> 2.0"},
{:req, "~> 0.4"}
]
def project do
[
app: @app,
version: @version,
elixir: "~> 1.16",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: @deps,
description: "Microsoft Graph for Elixir",
test_coverage: [tool: ExCoveralls],
package: package(),
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
plt_add_apps: [:mix, :ex_unit],
warnings: [:unknown]
]
]
end
# Specifies which paths to compile per environment
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[
extra_applications: [:logger]
]
end
defp package do
[
name: @app,
files: ~w(lib/msg* mix.exs README.md LICENSE),
licenses: ["MIT"],
links: %{"GitHub" => @source_url},
maintainers: ["Riddler Team"]
]
end
def cli do
[
preferred_envs: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.json": :test,
docs: :docs,
quality: :test
]
]
end
end