-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
64 lines (58 loc) · 1.78 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
defmodule IPFS.MixProject do
use Mix.Project
def project do
[
app: :ipfs,
version: "0.1.5",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "IPFS",
source_url: "https://github.com/tableturn/ipfs",
homepage_url: "https://github.com/tableturn/ipfs",
dialyzer: [plt_add_deps: :project],
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
vcr.delete vcr.check vcr.show
)),
package: package(),
description: "A wrapper around the IPFS and IPFS Cluster APIs."
]
end
def application do
[extra_applications: [:logger, :httpoison]]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
# Dev and Test only.
{:credo, "~> 0.8", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 0.5", only: [:dev, :test], runtime: false},
# Dev only.
{:mix_test_watch, "~> 0.5", only: :dev, runtime: false},
{:ex_doc, "~> 0.16", only: :dev, runtime: false},
{:excoveralls, "~> 0.8", only: :test, runtime: false},
# Test only.
{:exvcr, "~> 0.10", only: :test},
# All environments.
{:poison, "~> 3.1"},
{:httpoison, "~> 1.1"}
]
end
defp cli_env_for(env, tasks) do
Enum.reduce(tasks, [], &Keyword.put(&2, :"#{&1}", env))
end
defp package do
[
name: "ipfs",
files: ["lib", "mix.exs", "README*"],
maintainers: ["Pierre Martin"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/tableturn/ipfs"}
]
end
end