-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
57 lines (52 loc) · 1.43 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
defmodule OpenAPIClient.MixProject do
use Mix.Project
def project do
[
app: :open_api_client_ex,
version: "0.1.0",
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.html": :test,
"test.generate": :test
],
aliases: aliases()
]
end
defp elixirc_paths(:test), do: ["test/support" | elixirc_paths(:dev)]
defp elixirc_paths(_), do: ["lib"]
# 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
[
{:pluggable, "~> 1.1"},
{:oapi_generator,
github: "McSym28/open-api-generator",
ref: "6e5292042c953fce1c4ebcb8421c2b03d062a772",
only: [:dev, :test]},
{:jason, "~> 1.4", optional: true},
{:httpoison, "~> 2.2", optional: true},
{:mox, "~> 1.1", only: [:dev, :test]},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18", only: :test}
]
end
defp aliases do
[
"test.generate": [
"cmd rm -rf test/support/__generated__/*",
"cmd rm -rf test/open_api_client/__generated__/*",
"api.gen test test/fixture/test.yaml"
]
]
end
end