-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
23 lines (18 loc) · 700 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: all
all:
.PHONY: test
test: checkstyle test-unit
# for now no tests anymore in test/ after retry moved to github.com/okurz/retry
.PHONY: test-unit
test-unit: test-more-bash
# prove -r test/
test-more-bash:
git clone https://github.com/ingydotnet/test-more-bash.git --depth 1 -b 0.0.5
.PHONY: checkstyle
checkstyle: test-shellcheck
.PHONY: test-shellcheck
test-shellcheck:
@which shellcheck >/dev/null 2>&1 || echo "Command 'shellcheck' not found, can not execute shell script checks"
# many files report errors so far hence only including a fixed list so far
#shellcheck -x $$(file --mime-type * | sed -n 's/^\(.*\):.*text\/x-shellscript.*$$/\1/p')
shellcheck -x hosts-yaml-to-aaaa