mirror of
https://github.com/valitydev/erlang-templates.git
synced 2024-11-06 02:25:24 +00:00
add xref and dialyzer targets
This commit is contained in:
parent
fb3c15253b
commit
bec302d96d
1
TODO.md
1
TODO.md
@ -1,6 +1,5 @@
|
|||||||
# Хорошо бы заиметь
|
# Хорошо бы заиметь
|
||||||
|
|
||||||
- наброски тестов (?);
|
|
||||||
- сборку релиза, готового для эксплуатации: deb-пакет, Docker image, etc.;
|
- сборку релиза, готового для эксплуатации: deb-пакет, Docker image, etc.;
|
||||||
- структуру из конфигов с оверлеями;
|
- структуру из конфигов с оверлеями;
|
||||||
- maint-скрипт без _run_erl_;
|
- maint-скрипт без _run_erl_;
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
[].
|
|
5
erlang-service-files/rebar.config.script
Normal file
5
erlang-service-files/rebar.config.script
Normal 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.
|
@ -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}
|
||||||
|
@ -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"}.
|
||||||
|
Loading…
Reference in New Issue
Block a user