-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmix.exs
64 lines (55 loc) · 1.42 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 Tria.MixProject do
use Mix.Project
def project do
[
app: :tria,
version: "0.0.1-#{commit()}",
elixir: "~> 1.13",
start_permanent: false,
elixirc_paths: elixirc_paths(),
erlc_options: [debug_info: true],
test_elixirc_options: [debug_info: true, docs: true],
package: package(),
deps: deps()
]
end
def application, do: []
def description do
"Optimizing compiler for Elixir language"
end
defp package do
[
description: description(),
licenses: ["GPL 3"],
files: [
"lib",
"mix.exs",
"README.md",
"priv/pure.ets",
".formatter.exs"
],
maintainers: [
"Georgy Sychev"
],
links: %{
GitHub: "https://github.com/hissssst/tria"
}
]
end
defp elixirc_paths(env \\ Mix.env)
defp elixirc_paths(:test), do: elixirc_paths(:prod) ++ ["test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:mix_tester, "~> 1.0", only: :test},
{:ex_doc, "~> 0.23.0", only: :docs, runtime: false},
{:dialyxir, "~> 1.0.0", only: :dev, runtime: false},
{:credo, "~> 1.1", only: :dev, runtime: false},
{:rexbug, "~> 1.0", only: :dev, runtime: false},
]
end
defp commit do
"ref: " <> path = File.read!(".git/HEAD")
String.trim_trailing(File.read!(".git/#{String.trim_trailing(path)}"))
end
end