Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Get the tests working again #28

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ ebin/*.beam
.rebar
erl_crash.dump
*.sw[po]
_build/*
_*
16 changes: 12 additions & 4 deletions priv/make/code.mk
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -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]},
Expand Down