blob: e086ae1d38afc51ca83ae67fde967a990b7db336 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
.PHONY: test
test: git-validation shellcheck unit-test
.PHONY: unit-test
unit-test:
@docker build -t mssola/g:latest .
@docker run --rm mssola/g:latest bash test.sh
.PHONY: git-validation
git-validation:
ifeq (, $(shell which git-validation 2> /dev/null))
@echo "You don't have 'git-validation' installed, consider installing it (see the CONTRIBUTING.org file)."
else
@git-validation -q -range da5b6722c940..HEAD -travis-pr-only=false
endif
.PHONY: shellcheck
shellcheck:
ifeq (, $(shell which shellcheck 2> /dev/null))
@echo "You don't have 'shellcheck' installed, consider installing it (see the CONTRIBUTING.org file)."
else
@shellcheck g.sh
endif
|