add xref and dialyzer targets

This commit is contained in:
Petr Kozorezov 2016-03-01 20:42:15 +03:00
parent fb3c15253b
commit bec302d96d
7 changed files with 21 additions and 2 deletions

View File

@ -1,6 +1,5 @@
# Хорошо бы заиметь
- наброски тестов (?);
- сборку релиза, готового для эксплуатации: deb-пакет, Docker image, etc.;
- структуру из конфигов с оверлеями;
- maint-скрипт без _run_erl_;

View File

@ -8,6 +8,9 @@ all: compile
compile:
$(REBAR) compile
rebar_update:
$(REBAR) update
devrel:
$(REBAR) release
@ -17,6 +20,9 @@ start: devrel
test:
$(REBAR) ct
xref:
$(REBAR) xref
clean:
$(REBAR) clean

View File

@ -1 +0,0 @@
[].

View File

@ -0,0 +1,5 @@
case os:getenv("WERCKER_CACHE_DIR") of
false -> CONFIG;
[] -> CONFIG;
Dir -> lists:keystore(global_rebar_dir, 1, CONFIG, {global_rebar_dir, Dir})
end.

View File

@ -7,9 +7,18 @@ dev:
build:
steps:
- script:
name: rebar update
code: make rebar_update
- script:
name: run xref
code: make xref
- script:
name: run test suite
code: make test
- script:
name: run dialyzer
code: make dialyze
after-steps:
- slack-notifier:
url: ${SLACK_WEBHOOK_URL}

View File

@ -13,6 +13,7 @@
{template, "erlang-service-files/config/vm.args", "{{name}}/config/vm.args"}.
{template, "erlang-service-files/doc/index.md", "{{name}}/doc/index.md"}.
{template, "erlang-service-files/rebar.config", "{{name}}/rebar.config"}.
{template, "erlang-service-files/rebar.config.script", "{{name}}/rebar.config.script"}.
{template, "erlang-service-files/Makefile", "{{name}}/Makefile"}.
{template, "erlang-service-files/gitignore", "{{name}}/.gitignore"}.
{template, "erlang-service-files/README.md", "{{name}}/README.md"}.