forked from rubencaro/sequeler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
37 lines (33 loc) · 979 Bytes
/
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
defmodule Sequeler.Mixfile do
use Mix.Project
def project do
[app: :sequeler,
version: get_version_number,
elixir: "~> 1.0.0",
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[applications: [:logger, :cowboy, :plug, :emysql, :harakiri],
included_applications: [:jazz, :cipher, :mix, :iex],
mod: {Sequeler, []}]
end
# Type `mix help deps` for more examples and options
defp deps do
[ {:cowboy, "~> 1.0.0"}, # plug needs this to be listed before...
{:plug, "0.8.3"},
{:emysql, github: "Eonblast/Emysql"},
{:jazz, github: "meh/jazz"},
{:cipher, "0.1.0"},
{:harakiri, "0.5.0"},
{:bottler, "0.5.0"} ]
end
defp get_version_number do
commit = :os.cmd('git rev-parse --short HEAD') |> to_string |> String.rstrip(?\n)
v = "1.0.0+#{commit}"
if Mix.env == :dev, do: v = v <> "dev"
v
end
end