-
Notifications
You must be signed in to change notification settings - Fork 13
/
mix.exs
60 lines (53 loc) · 1.57 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
defmodule Graphmath.Mixfile do
use Mix.Project
def project do
[
app: :graphmath,
version: "2.6.0",
elixir: "~> 1.15",
elixirc_paths: elixirc_paths(Mix.env()),
description: description(),
package: package(),
source_url: "https://github.com/crertel/graphmath",
docs: &docs/0,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.github": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
def application, do: []
defp description do
"""
Graphmath is a library for doing 2D and 3D math, supporting matrix, vector, and quaternion operations.
"""
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:docs), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:credo, "~> 1.7.7", only: :dev},
{:dialyxir, "~> 1.4.3", only: [:dev], runtime: false},
{:ex_doc, "~> 0.34.2", only: [:dev, :docs]},
{:excoveralls, "~> 0.18.2", only: [:test, :dev]},
{:inch_ex, "~> 2.0.0", only: :docs}
]
end
defp package do
[
maintainers: ["Chris Ertel", "Ivan Miranda", "Matthew Philyaw"],
licenses: ["Public Domain (unlicense)", "WTFPL", "New BSD"],
links: %{"GitHub" => "https://github.com/crertel/graphmath"}
]
end
defp docs do
{ref, 0} = System.cmd("git", ["rev-parse", "--verify", "--quiet", "HEAD"])
[source_ref: ref, main: "api-reference"]
end
end