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.; - сборку релиза, готового для эксплуатации: deb-пакет, Docker image, etc.;
- структуру из конфигов с оверлеями; - структуру из конфигов с оверлеями;
- maint-скрипт без _run_erl_; - maint-скрипт без _run_erl_;

View File

@ -8,6 +8,9 @@ all: compile
compile: compile:
$(REBAR) compile $(REBAR) compile
rebar_update:
$(REBAR) update
devrel: devrel:
$(REBAR) release $(REBAR) release
@ -17,6 +20,9 @@ start: devrel
test: test:
$(REBAR) ct $(REBAR) ct
xref:
$(REBAR) xref
clean: clean:
$(REBAR) 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: build:
steps: steps:
- script:
name: rebar update
code: make rebar_update
- script:
name: run xref
code: make xref
- script: - script:
name: run test suite name: run test suite
code: make test code: make test
- script:
name: run dialyzer
code: make dialyze
after-steps: after-steps:
- slack-notifier: - slack-notifier:
url: ${SLACK_WEBHOOK_URL} 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/config/vm.args", "{{name}}/config/vm.args"}.
{template, "erlang-service-files/doc/index.md", "{{name}}/doc/index.md"}. {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", "{{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/Makefile", "{{name}}/Makefile"}.
{template, "erlang-service-files/gitignore", "{{name}}/.gitignore"}. {template, "erlang-service-files/gitignore", "{{name}}/.gitignore"}.
{template, "erlang-service-files/README.md", "{{name}}/README.md"}. {template, "erlang-service-files/README.md", "{{name}}/README.md"}.