-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
67 lines (60 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
defmodule Dymo.MixProject do
use Mix.Project
def project(),
do: [
app: :dymo,
version: "3.0.5",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "Dymo",
source_url: "https://github.com/tableturn/dymo",
homepage_url: "https://github.com/tableturn/dymo",
dialyzer: [
plt_add_deps: :transitive,
plt_add_apps: [:mix, :ecto]
],
docs: [extras: ~w(README.md)],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: cli_env_for(:test, ~w(
coveralls coveralls.detail coveralls.html coveralls.json coveralls.post
)),
consolidate_protocols: Mix.env() != :test,
package: package(),
description: "Dymo is your database labeling companion."
]
def application(),
do: [
extra_applications: [:logger, :runtime_tools]
]
defp elixirc_paths(:test),
do: ["lib", "test/support"]
defp elixirc_paths(_),
do: ["lib"]
defp deps(),
do: [
# Dev and Test only.
{:ecto_sql, "~> 3.3", only: [:dev, :test]},
{:postgrex, "~> 0.14", only: [:dev, :test]},
# Dev only.
{:credo, "~> 1.1", only: :dev, runtime: false},
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:ex_doc, "~> 0.19", only: [:dev, :test, :docs]},
# Test only.
{:excoveralls, "~> 0.8", only: :test},
# Everything else.
{:ecto, "~> 3.4"},
{:inflex, "~> 2.0"}
]
defp cli_env_for(env, tasks),
do: Enum.reduce(tasks, [], &Keyword.put(&2, :"#{&1}", env))
defp package(),
do: [
name: "dymo",
files: ["lib", "mix.exs", "README*"],
maintainers: ["Pierre Martin", "Jean Parpaillon"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/tableturn/dymo"}
]
end