-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
mix.exs
109 lines (97 loc) · 2.52 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
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 Boltx.Mixfile do
use Mix.Project
@version "0.0.6"
@url_docs "https://hexdocs.pm/boltx"
@url_github "https://github.com/sagastume/boltx"
def project do
[
app: :boltx,
version: @version,
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
package: package(),
description: "Neo4j driver for Elixir, using the fast Bolt protocol",
name: "Boltx",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
docs: docs(),
dialyzer: [plt_add_apps: [:jason, :poison, :mix], ignore_warnings: ".dialyzer_ignore.exs"],
test_coverage: [
tool: ExCoveralls,
summary: [
threshold: 70
]
],
preferred_cli_env: [
bench: :bench,
credo: :dev,
boltx: :test,
coveralls: :test,
"coveralls.html": :test,
"coveralls.travis": :test
],
aliases: aliases()
]
end
def application do
[
extra_applications: [:logger, :ssl, :public_key]
]
end
defp aliases do
[
test: [
"test"
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
%{
files: [
"lib",
"mix.exs",
"LICENSE"
],
licenses: ["Apache 2.0"],
maintainers: [
"Luis Sagastume"
],
links: %{
"Docs" => @url_docs,
"Github" => @url_github
}
}
end
defp docs() do
[
source_ref: "v#{@version}",
main: "readme",
extras: ["README.md"]
]
end
# Type "mix help deps" for more examples and options
defp deps do
[
{:db_connection, "~> 2.7.0"},
{:jason, "~> 1.4", optional: true},
{:poison, "~> 6.0", optional: true},
# Testing dependencies
{:excoveralls, "~> 0.18.0", optional: true, only: [:test, :dev]},
{:porcelain, "~> 2.0.3", only: [:test, :dev], runtime: false},
{:uuid, "~> 1.1.8", only: [:test, :dev], runtime: false},
{:tzdata, "~> 1.1", only: [:test, :dev]},
# Benchmarking dependencies
{:benchee, "~> 1.3.0", optional: true, only: [:dev, :test]},
{:benchee_html, "~> 1.0.0", optional: true, only: [:dev]},
# Linting dependencies
{:credo, "~> 1.7.3", only: [:dev]},
{:dialyxir, "~> 1.4.3", only: [:dev], runtime: false},
# Documentation dependencies
# Run me like this: `mix docs`
{:ex_doc, "~> 0.29", only: :dev, runtime: false}
]
end
end