forked from boydm/phoenix_integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
63 lines (56 loc) · 1.56 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
defmodule PhoenixIntegration.Mixfile do
use Mix.Project
@version "0.6.0"
@url "https://github.com/boydm/phoenix_integration"
def project do
[
app: :phoenix_integration,
version: @version,
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
deps: deps(),
package: [
contributors: ["Boyd Multerer"],
maintainers: ["Boyd Multerer"],
licenses: ["MIT"],
links: %{
"GitHub" => @url,
"Blog Post" => "https://medium.com/@boydm/integration-testing-phoenix-applications-b2a46acae9cb"
}
],
name: "phoenix_integration",
source_url: @url,
docs: docs(),
description: """
Lightweight server-side integration test functions for Phoenix.
Optimized for Elixir Pipes and the existing Phoenix.ConnTest
framework to emphasize both speed and readability.
"""
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[applications: [:phoenix]]
end
defp deps do
[
{:phoenix, "~> 1.3"},
{:phoenix_html, "~> 2.10"},
{:floki, ">= 0.18.0"},
{:jason, "~> 1.1"},
# Docs dependencies
{:ex_doc, ">= 0.0.0", only: [:dev, :docs]},
{:inch_ex, ">= 0.0.0", only: :docs},
# {:credo, "~> 1.0", only: [:dev, :test], runtime: false}
]
end
def docs do
[
extras: ["README.md"],
source_ref: "v#{@version}",
main: "PhoenixIntegration"
]
end
end