Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (40 sloc) 1008 Bytes
CACHEGRIND=qcachegrind
ELVIS=./bin/elvis
REBAR3=./bin/rebar3
all: compile
clean:
@echo "Running rebar3 clean..."
@$(REBAR3) clean -a
compile:
@echo "Running rebar3 compile..."
@$(REBAR3) as compile compile
coveralls:
@echo "Running rebar3 coveralls send..."
@$(REBAR3) as test coveralls send
dialyzer:
@echo "Running rebar3 dialyze..."
@$(REBAR3) dialyzer
edoc:
@echo "Running rebar3 edoc..."
@$(REBAR3) as edoc edoc
elvis:
@echo "Running elvis rock..."
@$(ELVIS) rock
eunit:
@echo "Running rebar3 eunit..."
@$(REBAR3) do eunit -cv, cover -v
profile:
@echo "Profiling..."
@$(REBAR3) as test compile
@erl -noshell \
-pa _build/test/lib/*/ebin \
-eval 'statsderl_profile:fprofx()' \
-eval 'init:stop()'
@_build/test/lib/fprofx/erlgrindx -p fprofx.analysis
@$(CACHEGRIND) fprofx.cgrind
test: elvis xref eunit dialyzer
travis: test coveralls
xref:
@echo "Running rebar3 xref..."
@$(REBAR3) xref
.PHONY: clean compile coveralls dialyzer edoc elvis eunit profile xref
Something went wrong with that request. Please try again.