-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
93 lines (78 loc) · 1.84 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
defmodule Xqlite.MixProject do
use Mix.Project
@name "Xqlite"
@version "0.1.1"
def project do
[
app: :xqlite,
version: @version,
elixir: "~> 1.7",
name: @name,
start_permanent: Mix.env() == :prod,
docs: docs(),
aliases: aliases(),
deps: deps(),
compilers: Mix.compilers(),
# hex
description: description(),
package: package(),
# testing
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.circle": :test,
t: :test
],
# type checking
dialyzer: dialyzer(Mix.env())
]
end
def application do
[
extra_applications: [:logger],
mod: {Xqlite.Application, []}
]
end
defp deps do
[
# dependencies that are always included.
{:floki, "~> 0.23"},
{:jason, "~> 1.2"},
{:rustler, "~> 0.30"},
# dev / test dependencies.
{:benchee, "~> 1.0", only: :dev, runtime: false},
{:dialyxir, "~> 1.4", only: :dev, runtime: false},
{:ex_doc, "~> 0.20", only: :dev, runtime: false},
{:excoveralls, "~> 0.11", only: :test}
]
end
defp docs(),
do: [
source_ref: "v#{@version}",
main: "readme",
extras: ["README.md"]
]
defp description(), do: "An Elixir SQLite database library utilising the rusqlite Rust crate"
defp package() do
[
licenses: ["MIT"],
links: %{
"Github" => "https://github.com/dimitarvp/xqlite",
"Hexdocs" => "https://hexdocs.pm/xqlite"
}
]
end
defp dialyzer(_) do
[]
end
defp aliases do
[
c: "compile",
f: ["format", "cmd cargo fmt --manifest-path native/xqlitenif/Cargo.toml"],
t: "test"
]
end
end