-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
66 lines (57 loc) · 1.91 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
defmodule PersistentVector.Mixfile do
use Mix.Project
@version "0.1.4"
@github "https://github.com/dimagog/persistent_vector"
def project do
[
app: :persistent_vector,
name: "Persistent Vector",
version: @version,
description: "PersistentVector is an array-like collection of values indexed by contiguous 0-based integer index and optimized for growing/shrinking at the end.",
elixir: "~> 1.4",
start_permanent: Mix.env == :prod,
elixirc_paths: elixirc_paths(Mix.env),
deps: deps(),
dialyzer: [
# flags: ~w[underspecs overspecs race_conditions error_handling unmatched_returns no_match]a
flags: ~w[error_handling unmatched_returns no_match]a
],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test, "coveralls.html": :test],
docs: [
main: "PersistentVector",
extras: [
"LICENSE.md": [title: "LICENSE"],
"README.md": [title: "Read Me"],
"benchmarks.md": [title: "Benchmarks"],
],
homepage_url: @github,
source_url: @github,
source_ref: "v#{@version}"
],
package: [
name: "persistent_vector",
licenses: ["MIT"],
maintainers: ["Dmitry Kakurin"],
links: %{"GitHub" => @github}
]
]
end
defp elixirc_paths(:test), do: ["lib", "test"]
defp elixirc_paths(_), do: ["lib"]
def application do
[applications: []]
end
defp deps do
[
{:benchee, "~> 0.9", only: :dev},
{:benchee_html, "~> 0.3", only: :dev},
{:dialyxir, "~> 0.5", only: [:dev, :test], runtime: false},
# Run `mix eqc.install --mini` for the first time to use eqc_ex
{:eqc_ex, "~> 1.4", only: :test},
{:excoveralls, "~> 0.7", only: :test},
{:ex_doc, "~> 0.16", only: :dev, runtime: false},
{:version_tasks, "~> 0.10", only: :dev, runtime: false}
]
end
end