-
Notifications
You must be signed in to change notification settings - Fork 24
/
mix.exs
90 lines (80 loc) · 2.25 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
86
87
88
89
90
defmodule Bootleg.Mixfile do
use Mix.Project
@version "0.13.0"
@source "https://github.com/labzero/bootleg"
@homepage "https://labzero.github.io/bootleg/"
def project do
[
app: :bootleg,
version: @version,
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
docs: :docs,
"hex.publish": :docs,
dialyzer: :dev,
coveralls: :test,
"coveralls.detail": :test,
"coveralls.circle": :test,
"coveralls.html": :test
],
dialyzer: [plt_add_apps: [:mix, :sshkit, :ex_unit]],
docs: docs(),
aliases: aliases(),
description: description(),
deps: deps(),
package: package(),
source_url: @source,
homepage_url: @homepage
]
end
def application do
[extra_applications: [:logger, :sshkit, :mix]]
end
defp deps do
[
{:sshkit, "0.3.0"},
{:ssh_client_key_api, "~> 0.2.1"},
{:credo, "~> 0.10", only: [:dev, :test]},
{:dialyxir, "~> 1.0.0-rc.6", only: [:dev], runtime: false},
{:ex_doc, "~> 0.18", only: [:docs], runtime: false},
{:excoveralls, "~> 0.10", only: [:test]},
{:mock, "~> 0.3.3", only: [:test]},
{:junit_formatter, "~> 2.0", only: [:test]},
{:temp, "~> 0.4.3", only: [:test]},
{:distillery, ">= 2.1.0", runtime: false}
]
end
defp aliases do
[
docs: [&mkdocs/1, "docs"]
]
end
defp mkdocs(_args) do
docs = Path.join([File.cwd!(), "script", "docs", "docs.sh"])
{_, 0} = System.cmd(docs, ["build"], into: IO.stream(:stdio, :line))
end
defp docs do
[
source_url: @source,
homepage_url: @homepage,
main: "home"
]
end
defp description do
"Simple deployment and server automation for Elixir."
end
defp package do
[
maintainers: ["labzero", "Brien Wankel", "Ned Holets", "Rob Adams"],
licenses: ["MIT"],
links: %{"GitHub" => @source, "Homepage" => @homepage}
]
end
defp elixirc_paths(:test), do: ["lib", "web", "test/support"]
defp elixirc_paths(:dev), do: ["lib", "web"]
defp elixirc_paths(_), do: ["lib", "web"]
end