-
Notifications
You must be signed in to change notification settings - Fork 8
/
mix.exs
76 lines (66 loc) · 1.79 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
75
76
Code.ensure_loaded?(Hex) and Hex.start
defmodule Radpath.Mixfile do
use Mix.Project
@version "0.0.5"
def project do
[ app: :radpath,
version: @version,
elixir: "~> 1.5.0 or ~> 1.4.0 or ~> 1.3.0 or ~> 1.0.2 or ~> 1.1.0",
description: description(),
docs: [source_ref: "v#{@version}", main: "Radpath"],
package: package(),
deps: deps(Mix.env),
deps_path: System.get_env("MY_DEPS_PATH") || "deps",
test_coverage: [tool: ExCoveralls]
]
end
# Configuration for the OTP application
def application do
[]
end
defp description do
"""
A path library for Elixir inspired by Python path libraries
"""
end
defp package do
[
files: ["lib", "mix.exs", "README.md", "LICENSE*", "test*"],
contributors: ["Low Kian Seong"],
deps: deps(:prod),
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/lowks/Radpath",
"Docs" => "http://hexdocs.pm/radpath"
}
]
end
# Returns the list of dependencies in the format:
# { :foobar, git: "https://github.com/elixir-lang/foobar.git", tag: "0.1" }
#
# To specify particular versions, regardless of the tag, do:
# { :barbat, "~> 0.1", github: "elixir-lang/barbat" }
defp deps(:prod) do
[
{:ex_doc, github: "elixir-lang/ex_doc"},
{:finder, github: "h4cc/Finder" },
{:erlware_commons, github: "erlware/erlware_commons"},
{:pattern_tap, github: "mgwidmann/elixir-pattern_tap"},
{:temp, "~> 0.2"},
]
end
defp deps(:test) do
deps(:prod) ++ [
# {:amrita, "~>0.4", github: "josephwilk/amrita", only: :test},
{:excoveralls, "== 0.3.6", only: :test},
]
end
defp deps(:docs) do
deps(:prod) ++ [
{:inch_ex, only: :docs},
]
end
defp deps(_) do
deps(:prod)
end
end