Skip to content

Commit d3d0af6

Browse files
committed
separate test dependencies
1 parent 73ce620 commit d3d0af6

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

Diff for: mix.exs

+16-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ defmodule Zencoder.Mixfile do
66
version: "0.0.1",
77
elixir: "~> 0.14.3",
88
test_coverage: [tool: ExCoveralls],
9-
deps: deps]
9+
deps: deps(Mix.env)]
1010
end
1111

1212
# Configuration for the OTP application
@@ -26,14 +26,25 @@ defmodule Zencoder.Mixfile do
2626
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1"}
2727
#
2828
# Type `mix help deps` for more examples and options
29-
defp deps do
29+
def deps(:dev) do
30+
deps(:prod)
31+
end
32+
33+
def deps(:test) do
34+
deps(:prod) ++
3035
[
31-
{:httpotion, "~> 0.2.4"},
32-
{:ibrowse, github: "cmullaparthi/ibrowse", tag: "v4.1.0"},
33-
{:jazz, "~> 0.1.2"},
3436
{:exvcr, "~> 0.1.7"},
3537
{:excoveralls, "~> 0.2.4"},
3638
{:meck, "0.8.2", github: "eproxus/meck"}
3739
]
3840
end
41+
42+
def deps(:prod) do
43+
[
44+
{:httpotion, "~> 0.2.4"},
45+
{:ibrowse, github: "cmullaparthi/ibrowse", tag: "v4.1.0"},
46+
{:jazz, "~> 0.1.2"},
47+
]
48+
end
49+
3950
end

0 commit comments

Comments
 (0)