Skip to content

Commit

Permalink
avoid deps when no tests needed
Browse files Browse the repository at this point in the history
  • Loading branch information
petrkozorezov committed Sep 5, 2012
1 parent 3ca8b9a commit 7984acd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ task :shell do
end end


task :features do task :features do
sh "rebar compile run-features path=test/acceptance skip_deps=true" sh "rebar -C rebar.tests.config compile run-features path=test/acceptance skip_deps=true"
end end


task :spec do task :spec do
sh "rebar compile && ERL_LIBS='deps/' ./espec test/spec/" sh "rebar -C rebar.tests.config compile && ERL_LIBS='deps/' ./espec test/spec/"
end end


task :default => :build task :default => :build
6 changes: 0 additions & 6 deletions rebar.config
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +0,0 @@
{deps, [
{espec, ".*", {git, "https://github.com/lucaspiller/espec.git", {branch, "master"}}},
{hamcrest, ".*", {git, "https://github.com/hyperthunk/hamcrest-erlang.git", {branch, master}}},
{meck, ".*", {git, "https://github.com/eproxus/meck.git", {branch, master}}}
]}.

6 changes: 6 additions & 0 deletions rebar.tests.config
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,6 @@
{deps, [
{espec, ".*", {git, "https://github.com/lucaspiller/espec.git", {branch, "master"}}},
{hamcrest, ".*", {git, "https://github.com/hyperthunk/hamcrest-erlang.git", {branch, master}}},
{meck, ".*", {git, "https://github.com/eproxus/meck.git", {branch, master}}}
]}.

0 comments on commit 7984acd

Please sign in to comment.