-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathmix.exs
121 lines (112 loc) · 3.18 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
defmodule SFTPClient.MixProject do
use Mix.Project
@source_url "https://github.com/tlux/sftp_client"
@version "2.1.0"
def project do
[
app: :sftp_client,
version: @version,
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
"coveralls.detail": :test,
"coveralls.github": :test,
"coveralls.html": :test,
"coveralls.post": :test,
coveralls: :test,
credo: :test,
dialyzer: :test,
test: :test
],
dialyzer: dialyzer(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
# Docs
name: "SFTP Client",
docs: docs()
]
end
def application do
[
extra_applications: [:logger, :ssh]
]
end
defp deps do
[
{:castore, "~> 1.0", only: :test},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18", only: :test},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:mix_audit, "~> 2.1", only: [:dev, :test]},
{:mox, "~> 1.1", only: :test},
{:temp, "~> 0.4", only: :test}
]
end
defp dialyzer do
[
plt_add_apps: [:ex_unit, :mix],
plt_add_deps: :app_tree,
plt_file: {:no_warn, "priv/plts/sftp_client.plt"}
]
end
defp package do
[
description:
"An Elixir SFTP Client that wraps Erlang's ssh and ssh_sftp.",
maintainers: ["Tobias Casper"],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url
}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp docs do
[
extras: [
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"],
groups_for_modules: [
"Adapter Behaviors": [
SFTPClient.Adapter.SFTP,
SFTPClient.Adapter.SSH
],
Operations: [
SFTPClient.Operations.CloseHandle,
SFTPClient.Operations.Connect,
SFTPClient.Operations.DeleteDir,
SFTPClient.Operations.DeleteFile,
SFTPClient.Operations.Disconnect,
SFTPClient.Operations.DownloadFile,
SFTPClient.Operations.FileInfo,
SFTPClient.Operations.LinkInfo,
SFTPClient.Operations.ListDir,
SFTPClient.Operations.MakeDir,
SFTPClient.Operations.MakeLink,
SFTPClient.Operations.OpenDir,
SFTPClient.Operations.OpenFile,
SFTPClient.Operations.ReadChunk,
SFTPClient.Operations.ReadDir,
SFTPClient.Operations.ReadFile,
SFTPClient.Operations.ReadLink,
SFTPClient.Operations.Rename,
SFTPClient.Operations.StreamFile,
SFTPClient.Operations.WriteChunk,
SFTPClient.Operations.WriteFile,
SFTPClient.Operations.ReadDir,
SFTPClient.Operations.ReadFileChunk,
SFTPClient.Operations.WriteFileChunk
]
]
]
end
end