-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathmix.exs
63 lines (53 loc) · 1.55 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
defmodule Sqlite.Ecto2.Mixfile do
use Mix.Project
def project do
[app: :sqlite_ecto2,
version: "2.4.1",
name: "Sqlite.Ecto2",
elixir: "~> 1.4",
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env),
# testing
build_per_environment: false,
test_paths: test_paths(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.html": :test,
"coveralls.circle": :test
],
# hex
description: description(),
package: package(),
# docs
docs: [main: Sqlite.Ecto2]]
end
# Configuration for the OTP application
def application do
[extra_applications: [:logger],
mod: {Sqlite.DbConnection.App, []}]
end
# Dependencies
defp deps do
[{:connection, "~> 1.0"},
{:credo, "~> 0.10", only: [:dev, :test]},
{:db_connection, "~> 1.1"},
{:decimal, "~> 1.5"},
{:excoveralls, "~> 0.9", only: :test},
{:ex_doc, "~> 0.20", runtime: false, only: :docs},
{:ecto, "2.2.11"},
{:poison, "~> 2.2 or ~> 3.0", optional: true},
{:postgrex, "~> 0.13", optional: true},
{:sbroker, "~> 1.0"},
{:sqlitex, "~> 1.6"}]
end
defp description, do: "SQLite3 adapter for Ecto2"
defp package do
[licenses: ["MIT"],
links: %{"Github" => "https://github.com/Elixir-Sqlite/sqlite_ecto2"}]
end
defp elixirc_paths(:test), do: ["lib", "test/sqlite_db_connection/support"]
defp elixirc_paths(_), do: ["lib"]
defp test_paths, do: ["integration/sqlite", "test"]
end