-
Notifications
You must be signed in to change notification settings - Fork 13
/
mix.exs
85 lines (74 loc) · 1.93 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
77
78
79
80
81
82
83
84
85
defmodule ExrmDeb.Mixfile do
use Mix.Project
def project do
[app: :exrm_deb,
version: "0.1.1",
elixir: "~> 1.3",
description: "Create a deb for your elixir release with ease",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(Mix.env),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
"coveralls": :test,
"coveralls.detail": :test,
"coveralls.post": :test],
package: package()]
end
def application, do: [applications: apps(Mix.env)]
defp apps(:test) do
apps(:all) ++ [:faker]
end
defp apps(:dev) do
apps(:all) ++ [:ex_doc, :earmark]
end
defp apps(_) do
[:logger, :exrm, :timex, :vex, :swab]
end
defp deps(:test) do
deps(:all) ++ [
{:faker, "~> 0.6", only: :test},
{:excoveralls, "~> 0.4", only: :test},
]
end
defp deps(:docs) do
deps(:all) ++ [
{:inch_ex, "~> 0.5", only: :docs}
]
end
defp deps(:dev) do
deps(:all) ++ [
{:ex_doc, "~> 0.13", only: :dev},
{:earmark, "~> 1.0", only: :dev}
]
end
defp deps(_) do
[
{:exrm, "~> 1.0"},
{:distillery, "~> 1.0"},
{:timex, "~> 3.0"},
{:vex, "~> 0.5"},
{:swab, github: "crownedgrouse/swab", branch: "master"},
{:dogma, "~> 0.1", only: [:dev, :test]},
{:credo, "~> 0.4", only: [:dev, :test]}
]
end
def package do
[
maintainer_scripts: [
pre_install: "config/deb/pre_install.sh"
],
external_dependencies: [],
license_file: "LICENSE",
files: [ "lib", "mix.exs", "README*", "LICENSE", "templates"],
maintainers: ["John Hamelink <[email protected]>"],
licenses: ["MIT"],
vendor: "John Hamelink",
links: %{
"GitHub" => "https://github.com/johnhamelink/exrm_deb",
"Docs" => "https://hexdocs.pm/exrm_deb",
"Homepage" => "https://github.com/johnhamelink/exrm_deb"
}
]
end
end