-
Notifications
You must be signed in to change notification settings - Fork 1
/
wercker.yml
46 lines (44 loc) · 856 Bytes
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
box:
id: erlang:21
volumes: $HOST_HOME/.cache:/root/.cache
dev:
steps:
- internal/shell:
code: |
if [ -n "$CI_BUILD_CMD" ]; then
eval "$CI_BUILD_CMD"
exit $?;
fi
build:
steps:
- script:
name: compile
code:
make compile
# ToDo
# - script:
# name: lint
# code: make compile
- script:
name: xref
code: make xref
- script:
name: check dialyzer cache
code: |
PLT=$(find $WERCKER_CACHE_DIR/ -name "rebar3*plt")
echo "found in cache: $PLT"
if [ -n "$PLT" ]; then cp "$PLT" _build/default/; fi
- script:
name: dialyze
code:
make dialyze
- script:
name: update dialyzer cache
code:
cp _build/default/rebar3*plt "$WERCKER_CACHE_DIR/"
- script:
name: test
code: make test
- script:
name: release
code: make release