Skip to content

Commit

Permalink
Merge pull request inaka#131 from inaka/jfacorro.98.tests
Browse files Browse the repository at this point in the history
[Closes inaka#98] Added tests and improved code
  • Loading branch information
Brujo Benavides committed Dec 4, 2015
2 parents 9eb350a + 38ddb2b commit 13b6b44
Show file tree
Hide file tree
Showing 17 changed files with 885 additions and 177 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ logs
storage
*.packages.v*
elvis
.erlang.mk/
31 changes: 27 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,41 @@
PROJECT = shotgun

DEPS = gun
dep_gun = git https://github.com/ninenines/gun.git 427230d
CONFIG = rel/sys.config

DEPS = cowlib gun
TEST_DEPS = katana cowboy mixer lasse
SHELL_DEPS = sync
dep_sync = git git://github.com/inaka/sync.git 0.1.3

dep_cowlib = git https://github.com/ninenines/cowlib.git 1.0.2
dep_gun = git https://github.com/ninenines/gun.git 427230d
dep_katana = git git://github.com/inaka/erlang-katana.git 0.2.14
dep_cowboy = git git://github.com/ninenines/cowboy.git 1.0.4
dep_mixer = git git://github.com/inaka/mixer.git 0.1.4
dep_lasse = git git://github.com/inaka/lasse.git 1.0.1
dep_sync = git git://github.com/inaka/sync.git 0.1.3

include erlang.mk

ERLC_OPTS += +warn_missing_spec

CONFIG = rel/sys.config
CT_OPTS = -cover test/cover.spec -erl_args -config ${CONFIG}

SHELL_OPTS = -name ${PROJECT}@`hostname` -s ${PROJECT} -config ${CONFIG} -s sync

quicktests: app
@$(MAKE) --no-print-directory app-build test-dir ERLC_OPTS="$(TEST_ERLC_OPTS)"
$(verbose) mkdir -p $(CURDIR)/logs/
$(gen_verbose) $(CT_RUN) -suite $(addsuffix _SUITE,$(CT_SUITES)) $(CT_OPTS)

test-build-plt: ERLC_OPTS=$(TEST_ERLC_OPTS)
test-build-plt:
@$(MAKE) --no-print-directory test-dir ERLC_OPTS="$(TEST_ERLC_OPTS)"
$(gen_verbose) touch ebin/test

plt-all: PLT_APPS := $(ALL_TEST_DEPS_DIRS)
plt-all: test-deps test-build-plt plt

dialyze-all: app test-build-plt dialyze

erldocs: all
erldocs . -o docs
Loading

0 comments on commit 13b6b44

Please sign in to comment.