-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
83 lines (75 loc) · 1.83 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
defmodule Pipeline.Mixfile do
use Mix.Project
def project do [
app: :pipeline,
version: "0.1.0",
description: description,
package: package,
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps,
spec_pattern: "*.spec.exs",
aliases: aliases,
spec_paths: [
"test/spec",
],
test_coverage: [
tool: ExCoveralls,
test_task: "espec",
],
preferred_cli_env: [
"espec": :test,
"coveralls": :test,
"coveralls.detail": :test,
"coveralls.post": :test,
],
] end
def application do [
applications: applications(Mix.env),
] end
defp applications(:test) do [
:cowboy,
:httpoison,
] end
defp applications(:dev) do [
:cowboy,
:httpoison,
] end
defp description do
"""
Monadic HTTP application composition for plug and friends.
"""
end
defp package do [
name: :pipeline,
files: ["lib", "mix.exs", "README*"],
maintainers: ["Izaak Schroeder"],
licenses: ["CC0-1.0"],
links: %{"GitHub" => "https://github.com/metalabdesign/pipeline"}
] end
defp aliases do [
lint: ["dogma"],
test: ["coveralls"],
] end
defp deps do [
# Monadic effects.
{:effects, "~> 0.1.1"},
# Support for plug.
{:plug, "~> 1.1.2", optional: true},
# Test coverage.
{:excoveralls, "~> 0.4", only: [:dev, :test]},
# Static analysis.
{:dialyxir, "~> 0.3", only: [:dev, :test]},
# Test-style.
{:espec, "~> 0.8.17", only: [:dev, :test]},
# Linting.
{:dogma, "~> 0.1.4", only: [:dev, :test]},
# Documentation generation.
{:ex_doc, "~> 0.13.0", only: [:dev]},
# Cowboy HTTP server.
{:cowboy, "~> 1.0.4", only: [:dev, :test]},
# HTTP requests during testing.
{:httpoison, "~> 0.9.0", only: [:dev, :test]},
] end
end