-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmix.exs
50 lines (45 loc) · 1.16 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
defmodule DBI.Mixfile do
use Mix.Project
@version "1.1.5"
def project do
[app: :dbi,
version: @version,
name: "DBI",
description: "DataBase Interface for Erlang",
package: package(),
source_url: "https://github.com/dbi-beam/dbi",
elixir: "~> 1.6",
compilers: Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
def application do
env = if Mix.env == :test do
[testdb1: [type: :dumb],
testdb2: [type: :dumb,
cache: 3],
testdb3: [type: :dumb,
delayed: :mydelayed],
testdb4: [type: :dumb,
migrations: :dbi]
]
else
[]
end
[applications: [:crypto, :public_key, :asn1, :ssl],
mod: {DBI, []},
env: env]
end
defp deps do
[{:cache, "~> 2.2.0"},
{:eql, "~> 0.1.2"},
{:ex_doc, ">= 0.0.0", only: :dev}]
end
defp package do
[files: ["lib", "src", "rebar.*", "include", "mix.exs", "README*", "COPYING*"],
maintainers: ["Manuel Rubio"],
licenses: ["LGPL 2.1"],
links: %{"GitHub" => "https://github.com/dbi-beam/dbi"}]
end
end