mirror of
https://github.com/valitydev/genlib.git
synced 2024-11-06 09:15:23 +00:00
CI: employ caching
This commit is contained in:
parent
2cee52feb3
commit
66db7fe296
1
.gitignore
vendored
1
.gitignore
vendored
@ -16,3 +16,4 @@ dev.config
|
||||
/_projects/
|
||||
/_steps/
|
||||
/_temp/
|
||||
ci/rebar.config
|
||||
|
8
Makefile
8
Makefile
@ -19,3 +19,11 @@ distclean:
|
||||
|
||||
dialyze:
|
||||
$(REBAR) dialyzer
|
||||
|
||||
CI_CONFIG := ci/rebar.config
|
||||
|
||||
%-ci: $(CI_CONFIG)
|
||||
$(MAKE) REBAR_CONFIG=$(CI_CONFIG) $*
|
||||
|
||||
$(CI_CONFIG): %: %.template
|
||||
$(CURDIR)/template.sh "$<" >> "$@"
|
||||
|
1
ci/rebar.config.template
Normal file
1
ci/rebar.config.template
Normal file
@ -0,0 +1 @@
|
||||
{dialyzer, [{base_plt_location, "${WERCKER_CACHE_DIR}"}]}.
|
5
template.sh
Executable file
5
template.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
eval "cat <<EOF
|
||||
$(<$1)
|
||||
EOF"
|
@ -10,7 +10,7 @@ build:
|
||||
code: make test
|
||||
- script:
|
||||
name: run dialyzer
|
||||
code: make dialyze
|
||||
code: make dialyze-ci
|
||||
after-steps:
|
||||
- slack-notifier:
|
||||
url: ${SLACK_WEBHOOK_URL}
|
||||
|
Loading…
Reference in New Issue
Block a user