forked from inaka/elvis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (39 loc) · 1.84 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
PROJECT = elvis
DEPS = lager sync getopt jiffy ibrowse zipper egithub katana
dep_lager = git https://github.com/basho/lager.git 2.0.3
dep_sync = git https://github.com/inaka/sync.git 0.1.3
dep_getopt = git https://github.com/jcomellas/getopt v0.8.2
dep_jiffy = git https://github.com/davisp/jiffy 0.14.2
dep_ibrowse = git https://github.com/cmullaparthi/ibrowse v4.1.2
dep_zipper = git https://github.com/inaka/zipper 0.1.2
dep_egithub = git https://github.com/inaka/erlang-github 0.1.7
dep_katana = git https://github.com/inaka/erlang-katana 0.2.13
TEST_DEPS = meck xref_runner
dep_meck = git https://github.com/eproxus/meck 0.8.3
dep_xref_runner = git https://github.com/inaka/xref_runner.git 0.2.2
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
# Commont Test Config
TEST_ERLC_OPTS += +'{parse_transform, lager_transform}'
CT_OPTS = -cover test/elvis.coverspec -erl_args -config config/test.config
# Builds the elvis escript.
escript: all
rebar escriptize
./elvis help
shell: app
erl -pa ebin -pa deps/*/ebin -name elvis@`hostname` -s sync -s elvis -s lager -config config/elvis.config
test-shell: build-ct-suites app
erl -pa ebin -pa deps/*/ebin -name elvis-test@`hostname` -pa test -s sync -s elvis -s lager -config config/test.config
install: escript
cp elvis /usr/local/bin
quicktests: ERLC_OPTS = $(TEST_ERLC_OPTS)
quicktests: clean 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