-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
49 lines (45 loc) · 1005 Bytes
/
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
defmodule Mix.Tasks.Compile.EjdbNif do
def run(_) do
if match? {:win32, _}, :os.type do
:not_implemented
else
{_, 0} = System.cmd(
"make",
["COVERAGE=#{Mix.env == :test}", "priv/ejdb.so"],
stderr_to_stdout: true,
into: IO.stream(:stdio, :line)
)
end
end
end
defmodule Ejdb.Mixfile do
use Mix.Project
def project do
[
app: :ejdb,
version: "0.1.0",
elixir: "~> 1.5",
test_coverage: [tool: ExCoveralls],
compilers: [:ejdb_nif] ++ Mix.compilers,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{
:libejdb,
github: "Softmotions/ejdb",
tag: "v1.2.12",
app: false,
compile: "make -C ../.. libejdb"
},
{:excoveralls, "~> 0.7", only: :test},
{:bson, "~> 0.4.4", only: :test}
]
end
end