Skip to content

Commit

Permalink
KAZOO-4574: also use ERL_LIBS when testing with CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fenollp committed Feb 24, 2016
1 parent 314acbc commit dcd41be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
2 changes: 0 additions & 2 deletions applications/kz.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
ERL_LIBS = $(CURDIR)/$(ROOT)/deps/:$(CURDIR)/$(ROOT)/core/

include $(CURDIR)/$(ROOT)/make/kz.mk


2 changes: 0 additions & 2 deletions core/kz.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
ERL_LIBS = $(CURDIR)/$(ROOT)/deps/:$(CURDIR)/$(ROOT)/core/

include $(CURDIR)/$(ROOT)/make/kz.mk


15 changes: 4 additions & 11 deletions make/kz.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,9 @@
## pipefail enforces that the command fails even when run through a pipe
SHELL = /bin/bash -o pipefail


ERLC_OPTS += +debug_info -Iinclude -Isrc
## Use pedantic flags when compiling apps from applications/ & core/
ifeq ($(findstring deps, $(abspath Makefile)), deps)
KZ_APP_OTPS =
else
KZ_APP_OTPS += -Werror +warn_export_all +warn_unused_import +warn_unused_vars
endif

ERLC_OPTS += $(KZ_APP_OTPS) +debug_info -Iinclude -Isrc

ERLC_OPTS += -Werror +warn_export_all +warn_unused_import +warn_unused_vars

EBINS += $(ROOT)/core/whistle/ebin \
$(wildcard $(ROOT)/deps/lager/ebin)
Expand Down Expand Up @@ -61,11 +54,11 @@ clean-test: $(CLEAN_MOAR)

## Use this one when debugging
test: compile-test
ERL_LIBS=$(ERL_LIBS) erl -noshell $(TEST_PA) -eval "case eunit:test([`echo ebin/*.beam | sed 's%\.beam ebin/%, %g;s%ebin/%%;s/\.beam//'`], [verbose]) of ok -> init:stop(); _ -> init:stop(1) end."
ERL_LIBS=$(ERL_LIBS) erl -noshell $(TEST_PA) -eval "case eunit:test([`echo ebin/*.beam | sed 's%\.beam ebin/%, %g;s%ebin/%%;s/\.beam//'`], [verbose]) of ok -> init:stop(); _ -> init:stop(1) end."

## Use this one when CI
eunit:
erl -noshell $(TEST_PA) -eval "case eunit:test([`echo ebin/*.beam | sed 's%\.beam ebin/%, %g;s%ebin/%%;s/\.beam//'`], [verbose]) of ok -> init:stop(); _ -> init:stop(1) end."
ERL_LIBS=$(ERL_LIBS) erl -noshell $(TEST_PA) -eval "case eunit:test([`echo ebin/*.beam | sed 's%\.beam ebin/%, %g;s%ebin/%%;s/\.beam//'`], [verbose]) of ok -> init:stop(); _ -> init:stop(1) end."


PLT ?= $(ROOT)/.kazoo.plt
Expand Down

0 comments on commit dcd41be

Please sign in to comment.