-REBAR := ./rebar --config rebar_test_build.config
+REBAR := ./rebar
.PHONY: \
all \
deps_get \
deps_update \
dialyze \
- dialyzer_blt_build
+ dialyzer_plt_build \
+ test \
+ travis_ci
all: \
+ travis_ci \
+ dialyze
+
+travis_ci: \
clean_all \
deps_get \
- compile_all
+ compile_all \
+ test
deps_get:
@$(REBAR) get-deps
$(REBAR) clean skip_deps=true
dialyze:
- @dialyzer deps/*/ebin ebin
+ @dialyzer $(shell \
+ find . -name '*.beam' \
+ | grep -v deps/meck/ \
+ )
-dialyzer_blt_build:
+
+dialyzer_plt_build:
@dialyzer \
--build_plt \
--apps $(shell ls $(shell \
| grep -v interface \
| sed -e 's/-[0-9.]*//' \
)
+
+test:
+ @$(REBAR) ct skip_deps=true --verbose=1