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.;
|
||||
- структуру из конфигов с оверлеями;
|
||||
- maint-скрипт без _run_erl_;
|
||||
|
@ -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
|
||||
|
||||
|
@ -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:
|
||||
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}
|
||||
|
@ -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"}.
|
||||
|
Loading…
Reference in New Issue
Block a user