-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathmix.exs
More file actions
109 lines (101 loc) · 2.66 KB
/
mix.exs
File metadata and controls
109 lines (101 loc) · 2.66 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
defmodule Snowflex.MixProject do
use Mix.Project
@source_url "https://github.com/pepsico-ecommerce/snowflex"
@version "1.2.1"
def project do
[
app: :snowflex,
name: "Snowflex",
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
dialyzer: [
plt_add_apps: [:ex_unit, :mix, :credo, :earmark],
list_unused_filters: true,
flags: [
:no_opaque,
:unknown,
:unmatched_returns,
:extra_return,
:missing_return,
:error_handling
],
plt_file: {:no_warn, "priv/plts/project.plt"},
plt_core_path: "priv/plts/core.plt"
],
test_coverage: [tool: ExCoveralls],
docs: docs(),
elixirc_paths: elixirc_paths(Mix.env())
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def cli do
[
preferred_envs: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {Snowflex.Application, []}
]
end
defp package do
[
description: "The client interface for connecting to the Snowflake data warehouse.",
files: ~w(lib .formatter.exs mix.exs README* LICENSE* CHANGELOG*),
licenses: ["Apache-2.0"],
links: %{
"GitHub" => @source_url
}
]
end
defp deps do
[
{:backoff, "~> 1.1.6"},
# Ecto/DBConnection
{:ecto, "~> 3.12"},
{:ecto_sql, "~> 3.12"},
{:db_connection, "~> 2.4"},
# HTTP
{:req, "~> 0.5"},
{:plug, "~> 1.0"},
{:jose, "~> 1.11"},
{:jason, "~> 1.0"},
# Linting
{:dialyxir, "~> 1.4", only: :dev, runtime: false},
{:credo, "~> 1.7", only: :dev, runtime: false},
{:ex_check, "~> 0.12", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.13", only: :test},
{:doctor, "~> 0.22.0", only: :dev},
{:mix_audit, "~> 2.1", only: [:dev, :test], runtime: false},
# Documentation
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
# Runtime introspection
{:telemetry, "~> 0.4 or ~> 1.0"}
]
end
defp docs do
[
extras: [
"CHANGELOG.md": [],
LICENSE: [title: "License"]
],
main: "Snowflex",
api_reference: false,
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"]
]
end
end