-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathmix.exs
65 lines (54 loc) · 1.61 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
defmodule Bourne.Mixfile do
use Mix.Project
@version File.read!("VERSION") |> String.trim_trailing
@source "https://github.com/mtwilliams/bourne"
def project do [
app: :bourne,
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
config_path: "config/config.exs",
build_path: "_build",
deps_path: "_deps",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
name: "Bourne for Ecto",
description: "Better streaming for Ecto.",
version: @version,
docs: docs(),
homepage_url: @source,
source_url: @source,
test_coverage: [tool: ExCoveralls]
] end
def application do
[applications: applications(Mix.env)]
end
defp applications(:test), do: [:postgrex, :ecto, :logger]
defp applications(_), do: [:ecto, :logger]
defp deps do [
{:ecto, "~> 2.1"},
# Testing
{:postgrex, "~> 0.13", only: [:test]},
{:gen_stage, "~> 0.13", only: [:test]},
{:excoveralls, ">= 0.0.0", only: [:test]},
{:inch_ex, ">= 0.0.0", only: [:dev, :docs]},
# Documentation
{:ex_doc, "~> 0.15", only: [:dev, :docs]},
{:earmark, "~> 1.1", only: [:dev, :docs]}
] end
defp elixirc_paths(_), do: ~W{lib}
defp package do [
maintainers: ["Michael Williams"],
licenses: ["Public Domain"],
links: %{"Github" => @source},
files: ~w(lib mix.exs README.md LICENSE CHANGELOG.md VERSION)
] end
defp docs do [
main: "Bourne",
canonical: "http://hexdocs.pm/bourne",
source_ref: "v#{@version}",
source_url: @source,
extras: ~W{README.md CHANGELOG.md}
] end
end