-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
41 lines (30 loc) · 1.68 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 = fiar
DEPS = emysql sumo_db lager eper sync cowlib ranch cowboy lasse jiffy shotgun katana
dep_emysql = git https://github.com/inaka/Emysql.git 0.4.2
dep_cowlib = git https://github.com/ninenines/cowlib.git 1.0.0
dep_ranch = git https://github.com/ninenines/ranch.git 1.0.0
dep_cowboy = git https://github.com/extend/cowboy.git 1.0.0
dep_jiffy = git https://github.com/davisp/jiffy.git 0.11.3
dep_sumo_db = git https://github.com/inaka/sumo_db.git 0.1.2
dep_sync = git https://github.com/rustyio/sync.git ae7dbd4
dep_lager = git https://github.com/basho/lager.git 2.0.3
dep_lasse = git https://github.com/inaka/lasse.git 1.0.1
dep_eper = git https://github.com/massemanet/eper.git 0.96.4
dep_katana = git https://github.com/inaka/erlang-katana 0.2.7
dep_shotgun = git https://github.com/inaka/shotgun 0.1.12
DIALYZER_DIRS := ebin/
DIALYZER_OPTS := --verbose --statistics -Werror_handling \
-Wrace_conditions #-Wunmatched_returns
include erlang.mk
ERLC_OPTS := +warn_unused_vars +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_untyped_record +debug_info
ERLC_OPTS += +'{parse_transform, lager_transform}'
CT_OPTS = -cover test/fiar.coverspec -erl_args -config config/test.config
TEST_ERLC_OPTS += +'{parse_transform, lager_transform}'
shell: app
erl -pa ebin -pa deps/*/ebin -s sync -s fiar -config config/test.config
test-shell: build-ct-suites app
erl -name fiar@`hostname` -pa ebin -pa deps/*/ebin -pa test -s sync -s fiar -s shotgun -config config/test.config
devtests: tests
open logs/index.html