Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Aug 12, 2017
2 parents 886a1da + 9946435 commit 81cc339
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/mad.hrl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-define(VERSION,"2b4779").
-define(VERSION,"886a1d").
Binary file modified mad
Binary file not shown.
3 changes: 2 additions & 1 deletion src/mad.erl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ atomize("dep") -> 'deps';
atomize("deps") -> 'deps';
atomize("cle"++_) -> 'clean';
atomize("com"++_) -> 'compile';
atomize("eunit") -> 'eunit';
atomize("up") -> 'up';
atomize("rel"++_) -> 'release';
atomize("bun"++_) -> 'release';
Expand Down Expand Up @@ -70,7 +71,7 @@ help() -> info("MAD Container Tool version ~s~n",[?VERSION]),
info("~n"),
info(" invoke = mad params~n"),
info(" params = [] | command [ options ] params ~n"),
info(" command = app | deps | clean | compile | up~n"),
info(" command = app | deps | clean | compile | up | eunit~n"),
info(" | release [ beam | ling | script | runc | depot ]~n"),
info(" | deploy | start | stop | attach | sh | static [ <watch|min> ] ~n"),
return(false).
1 change: 1 addition & 0 deletions src/profile/mad_local.erl
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ deps(Params) -> mad_git:deps(Params).
up(Params) -> mad_git:up(Params).
fetch(Params) -> mad_git:fetch(Params).
static(Params) -> mad_static:main([],Params).
eunit(Params) -> mad_eunit:main_test(Params).
8 changes: 8 additions & 0 deletions src/test/mad_eunit.erl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-module(mad_eunit).
-compile(export_all).

main_test(_Params) ->
case application:get_application() of
{ok, App} -> eunit:test([{application, App}]);
_ -> eunit:test()
end.

0 comments on commit 81cc339

Please sign in to comment.