From 813c5023a1841bf6e0717f79168c256fa8871538 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 23 Jun 2016 02:50:43 -0500 Subject: [PATCH 1/3] Clean up rebar.config Remove clj as test dependency and remove the empty default profile. --- rebar.config | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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]}, From daa53dc69441079061c964efea51e2d1f05cc41e Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 23 Jun 2016 02:51:14 -0500 Subject: [PATCH 2/3] Ignore _* --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/* +_* From 66c4b3f26da317c29feb8817b935111825cbd701 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 23 Jun 2016 02:51:36 -0500 Subject: [PATCH 3/3] Update code.mk KISS and symlink self to test profile lib dir. --- priv/make/code.mk | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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