-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
41 lines (27 loc) · 1.33 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
PROJECT = consulerl
PROJECT_VERSION = 0.1.0
PROJECT_DESCRIPTION = Consul client
COVER=1
LOCAL_DEPS = ssl inets
PLT_APPS = asn1 crypto public_key ssl inets
DEPS = erlang_uuid lager jiffy hackney
dep_erlang_uuid = git https://github.com/travis/erlang-uuid.git master
dep_lager = git https://github.com/basho/lager.git "2.2.3"
dep_jiffy = git https://github.com/davisp/jiffy.git "0.14.8"
dep_hackney = git https://github.com/benoitc/hackney.git "1.6.1"
TEST_DEPS = meck ecoveralls
dep_meck = git https://github.com/eproxus/meck.git 0.8.4
dep_ecoveralls = git https://github.com/nifoc/ecoveralls master
SHELL_DEPS = sync
dep_sync = git git://github.com/rustyio/sync.git master
include erlang.mk
ERLC_OPTS += -Werror +debug_info +warn_export_vars +warn_shadow_vars +warn_obsolete_guard
ERLC_OPTS += +'{parse_transform, lager_transform}'
TEST_ERLC_OPTS += +'{parse_transform, lager_transform}' +'{lager_truncation_size, 20480}'
SHELL_OPTS += -config rel/shell.config -run consulerl -run sync go
EUNIT_ERL_OPTS += -config rel/shell.config
EUNIT_OPTS = verbose
DIALYZER_DIRS = ebin -r $(wildcard src) $(ALL_APPS_DIRS)
coverage-report: $(shell ls -1rt `find . -type f -name \eunit.coverdata 2>/dev/null` | tail -n1)
$(gen_verbose) erl -noshell -pa ebin deps/*/ebin -eval 'ecoveralls:travis_ci("./eunit.coverdata"), init:stop()'
.PHONY: coverage-report