-
Notifications
You must be signed in to change notification settings - Fork 38
/
Makefile
54 lines (40 loc) · 1.83 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
PROJECT = sumo_db
CONFIG ?= test/test.config
DEPS = lager emysql emongo tirerl epgsql wpool riakc uuid
dep_lager = git https://github.com/basho/lager.git 2.1.1
dep_emysql = git https://github.com/Eonblast/Emysql.git v0.4.1
dep_emongo = git https://github.com/inaka/emongo.git v0.2.1
dep_tirerl = git https://github.com/inaka/tirerl 0.1.2
dep_epgsql = git https://github.com/epgsql/epgsql 2.0.0
dep_wpool = git https://github.com/inaka/worker_pool.git 1.0.2
dep_riakc = git https://github.com/inaka/riak-erlang-client.git 2.1.1-dialyzed
dep_uuid = git git://github.com/okeuday/uuid.git v1.4.0
TEST_DEPS = mixer
dep_mixer = git git://github.com/inaka/mixer.git 0.1.2
PLT_APPS := mnesia
DIALYZER_DIRS := ebin/
DIALYZER_OPTS := --verbose --statistics -Werror_handling \
-Wrace_conditions #-Wunmatched_returns
include erlang.mk
ERLC_OPTS += +'{parse_transform, lager_transform}'
ERLC_OPTS += +warn_unused_vars +warn_export_all +warn_shadow_vars +warn_unused_import +warn_unused_function
ERLC_OPTS += +warn_bif_clash +warn_unused_record +warn_deprecated_function +warn_obsolete_guard +strict_validation
ERLC_OPTS += +warn_export_vars +warn_exported_vars +warn_missing_spec +warn_untyped_record +debug_info
COMPILE_FIRST += sumo_backend sumo_doc sumo_store
# Commont Test Config
TEST_ERLC_OPTS += +'{parse_transform, lager_transform}'
CT_OPTS = -cover test/sumo.coverspec -vvv -erl_args -config ${CONFIG}
SHELL_OPTS = -name ${PROJECT}@`hostname` -config ${CONFIG} -s sync
test-shell: build-ct-suites app
erl -pa ebin -pa deps/*/ebin -pa test -s lager -s sync -config ${CONFIG}
erldocs:
erldocs . -o docs
changelog:
github_changelog_generator --token ${TOKEN}
quicktests: app build-ct-suites
@if [ -d "test" ] ; \
then \
mkdir -p logs/ ; \
$(CT_RUN) -suite $(addsuffix _SUITE,$(CT_SUITES)) $(CT_OPTS) ; \
fi
$(gen_verbose) rm -f test/*.beam