-
Notifications
You must be signed in to change notification settings - Fork 13
/
mix.exs
115 lines (107 loc) · 3.27 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
defmodule WebDriverClient.MixProject do
use Mix.Project
@version "0.2.0"
def project do
[
app: :web_driver_client,
version: @version,
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.travis": :test,
"coveralls.html": :test,
"coveralls.json": :test,
docs: :docs
],
start_permanent: Mix.env() == :prod,
docs: docs(),
deps: deps(),
dialyzer: dialyzer(),
package: package(),
description: """
Low-level WebDriver client for Elixir.
"""
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:tesla, "~> 1.3"},
{:jason, "~> 1.0"},
{:hackney, "~> 1.6"},
{:bypass, "~> 1.0", only: :test},
{:stream_data, "~> 0.1", only: [:dev, :test]},
{:excoveralls, "~> 0.10", only: :test},
{:credo, "~> 1.4.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.1.0", only: [:dev], runtime: false},
{:ex_doc, "~> 0.20", only: [:docs, :docs_prerelease]}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp dialyzer do
[
ignore_warnings: ".dialyzer_ignore.exs",
list_unused_filters: true
]
end
defp docs do
[
main: "WebDriverClient",
groups_for_modules: [
"Main API": [
WebDriverClient,
WebDriverClient.Cookie,
WebDriverClient.Config,
WebDriverClient.ConnectionError,
WebDriverClient.Element,
WebDriverClient.LogEntry,
WebDriverClient.ProtocolMismatchError,
WebDriverClient.ServerStatus,
WebDriverClient.Session,
WebDriverClient.Size,
WebDriverClient.UnexpectedResponseError,
WebDriverClient.WebDriverError
],
"Low-level JWP API": [
WebDriverClient.JSONWireProtocolClient,
WebDriverClient.JSONWireProtocolClient.LogEntry,
WebDriverClient.JSONWireProtocolClient.WebDriverError,
WebDriverClient.JSONWireProtocolClient.UnexpectedResponseError
],
"Low-level W3C API": [
WebDriverClient.W3CWireProtocolClient,
WebDriverClient.W3CWireProtocolClient.LogEntry,
WebDriverClient.W3CWireProtocolClient.Rect,
WebDriverClient.W3CWireProtocolClient.UnexpectedResponseError,
WebDriverClient.W3CWireProtocolClient.WebDriverError
]
],
groups_for_functions: [
Sessions: &(&1[:subject] == :sessions),
Navigation: &(&1[:subject] == :navigation),
Elements: &(&1[:subject] == :elements),
Alerts: &(&1[:subject] == :alerts),
Logging: &(&1[:subject] == :logging)
],
source_ref: "v#{@version}",
source_url: "https://github.com/aaronrenner/web_driver_client"
]
end
defp package do
[
maintainers: ["Aaron Renner", "Michał Łępicki"],
licenses: ["MIT"],
links: %{github: "https://github.com/aaronrenner/web_driver_client"}
]
end
end