-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 856 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 856 Bytes
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
.PHONY: all
all:
.PHONY: test
test: checkstyle test-unit
.PHONY: test-unit
test-unit: test-more-bash test-python
prove -r test/
test-more-bash:
git clone https://github.com/ingydotnet/test-more-bash.git --depth 1 -b 0.0.5
.PHONY: test-python
test-python:
py.test test
.PHONY: checkstyle
checkstyle: test-shellcheck checkstyle-python
.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
.PHONY: checkstyle-python
checkstyle-python:
@which ruff >/dev/null 2>&1 || echo "Command 'ruff' not found, can not execute python style checks"
ruff check