-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
51 lines (46 loc) · 1.09 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
defmodule DDogZip.MixProject do
use Mix.Project
def project do
[
app: :ddogzip,
version: version(),
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
dialyzer: [flags: ["-Wunmatched_returns", :error_handling, :underspecs]],
deps: deps(),
releases: releases()
]
end
def version do
case File.read("version.txt") do
{:ok, version} -> String.trim(version)
_ -> "0.0.0"
end
end
def releases do
[
ddogzip: [
include_executables_for: [:unix],
applications: [runtime_tools: :permanent]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {DDogZip.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:jason, "~> 1.4"},
{:bandit, "~> 1.0"},
{:plug, "~> 1.15"},
{:msgpax, "~> 2.2.1 or ~> 2.3"},
{:httpoison, "~> 0.13 or ~> 1.0 or ~> 2.0"},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}
]
end
end