diff --git a/.gitignore b/.gitignore index f3a572b..fe105c6 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,4 @@ ebin/*.beam .rebar erl_crash.dump *.sw[po] -_build/* +_* diff --git a/priv/make/code.mk b/priv/make/code.mk index c9df3e8..3c5c4a7 100644 --- a/priv/make/code.mk +++ b/priv/make/code.mk @@ -1,10 +1,18 @@ +lib := $(notdir $(PWD)) +_build := $(PWD)/_build + compile: - rebar3 compile + @rebar3 compile check: compile - -@rebar3 as default+test compile - @./priv/scripts/setup_test_env.sh - @rebar3 as default+test eunit + @mkdir -p _build/test/lib + @ln -sf $(_build)/default/lib/$(lib) $(_build)/test/lib + @rebar3 eunit + +# check: compile +# -@rebar3 as default+test compile +# @./priv/scripts/setup_test_env.sh +# @rebar3 as default+test eunit repl: @rebar3 as dev compile diff --git a/rebar.config b/rebar.config index 5f9da97..6a39667 100644 --- a/rebar.config +++ b/rebar.config @@ -17,11 +17,9 @@ [{deps, [{lfe, {git, "https://github.com/rvirding/lfe.git", {tag, "v1.1.1"}}}]} ]}, - {default, []}, {test, [{deps, - [{clj, {git, "https://github.com/lfex/clj.git", {tag, "0.5.0"}}}, - {lutil, {git, "https://github.com/lfex/lutil.git", {tag, "0.9.0"}}}, + [{lutil, {git, "https://github.com/lfex/lutil.git", {tag, "0.9.0"}}}, {ltest, {git, "https://github.com/lfex/ltest.git", {tag, "0.9.0"}}} ]}, {eunit_opts, [verbose]},