aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 130d5991a1073737b663a5eecccdaabf9bd5ddde (plain)
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
.PHONY: test
test: git-validation shellcheck unit-test

.PHONY: unit-test
unit-test: build-image bash-test

.PHONY: build-image
build-image:
	@docker build -t mssola/g:latest .

.PHONY: bash-test
bash-test:
	@echo -e "BASH\ttest.sh"
	@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