-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
49 lines (40 loc) · 1.27 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
defmodule BrandoInstagram.Mixfile do
use Mix.Project
@version "0.1.0-dev"
def project do
[app: :brando_instagram,
version: @version,
compilers: [:gettext, :phoenix] ++ Mix.compilers,
elixirc_paths: elixirc_paths(Mix.env),
test_coverage: [tool: ExCoveralls],
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
[applications: applications(Mix.env)]
end
defp applications(:test), do: applications(:all) ++ [:ecto, :phoenix]
defp applications(_all) do
[:gettext, :logger]
end
defp deps do
[{:phoenix, "~> 1.2"},
{:phoenix_ecto, "~> 3.0.0"},
{:gettext, "~> 0.11"},
# Test dependencies
{:ex_machina, "~> 1.0", only: :test},
{:excoveralls, "~> 0.5", only: :test},
{:brando, github: "twined/brando", branch: "develop", optional: true},
# Documentation dependencies
{:ex_doc, "~> 0.11", only: :docs},
{:inch_ex, "~> 0.5", only: :docs}]
end
# Specifies which paths to compile per environment
defp elixirc_paths(:test), do: ["lib", "web", "test/support"]
defp elixirc_paths(_), do: ["lib", "web"]
end