forked from speechmarkdown/speechmarkdown-ex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
74 lines (66 loc) · 1.73 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
defmodule SpeechMarkdown.Mixfile do
use Mix.Project
def project do
[
app: :speechmarkdown,
name: "SpeechMarkdown",
version: "0.7.0",
elixir: "~> 1.9",
description: "SpeechMarkdown transpiler for Elixir",
package: package(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.html": :test,
"coveralls.post": :test
],
dialyzer: [
ignore_warnings: ".dialyzerignore",
plt_add_deps: :transitive
],
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
docs: [extras: ["README.md"]]
]
end
defp deps do
[
{:nimble_parsec, "~> 0.5"},
{:excoveralls, "~> 0.11", only: :test},
{:credo, "~> 1.1", only: :dev, runtime: false},
{:dialyxir, "~> 0.5", only: :dev, runtime: false},
{:ex_doc, "~> 0.21", only: :dev, runtime: false}
]
end
def application do
[
extra_applications: [:xmerl]
]
end
defp package do
[
files: ["mix.exs", "README.md", "VERSION", "lib"],
maintainers: ["Brent M. Spell", "Arjan Scherpenisse"],
licenses: ["Apache 2.0"],
links: %{
"GitHub" => "https://github.com/speechmarkdown/speechmarkdown-ex",
"Docs" => "http://hexdocs.pm/speechmarkdown/"
}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp ensure_submodule(_) do
path =
Path.join(__DIR__, "test/fixtures/speechmarkdown-test-files/test-data")
if not File.dir?(path) do
:os.cmd('git submodule update --init')
end
end
defp aliases do
[
test: [&ensure_submodule/1, "test"]
]
end
end