-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
47 lines (40 loc) · 1.13 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
defmodule NVim.Mixfile do
use Mix.Project
def project do
[app: :nvim,
version: "0.4.2",
preferred_cli_env: [espec: :test],
elixir: ">= 1.3.0",
deps: deps(),
package: package(),
description: "Neovim elixir host",
aliases: aliases()]
end
defp package do
[name: :nvim,
files: ["lib", "mix.exs", "README*"],
licenses: ["Apache 2.0"],
maintainers: ["Dmitry Dedov"],
links: %{"GitHub" => "https://github.com/dm1try/nvim"}]
end
defp aliases do
[espec: "espec --exclude integration",
"espec.integration": ["compile", &setup_test_host/1, "espec --only integration --exclude none"]]
end
def application do
[applications: [:logger, :logger_file_backend, :msgpack_rpc]]
end
defp deps do
[{:logger_file_backend, "~> 0.0.9"},
{:msgpack_rpc, ">= 0.1.2"},
{:espec, "~> 1.8.3", only: [:test, :dev]},
{:ex_doc, "~> 0.14.1", only: :dev}]
end
defp setup_test_host(_) do
fixtures_path = Path.expand("spec/fixtures")
NVim.Test.Integration.setup_host(
fixtures_path,
"let &rtp .= ',#{fixtures_path}/xdg_home/nvim'"
)
end
end