forked from unkontributors/super_unko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (26 loc) · 770 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
24
25
26
27
28
29
30
31
32
33
34
.PHONY: default
default: usage
.PHONY: usage
usage: ## Print help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: setup
setup: ## Setup docker images
docker-compose build
docker-compose -f docker-compose-ci.yml build
.PHONY: check
check: test lint ## Run tests and linter
.PHONY: lint
lint: ## Run linter
./linter.sh all
.PHONY: test
test: ## Run tests
docker-compose -f docker-compose-ci.yml run --rm ci_sh_5.0
.PHONY: test-bash-version
test-bash-version: ## Run test all bash version
docker-compose -f docker-compose-ci.yml up
.PHONY: clean
package: ## Build packages
./package.sh
.PHONY: clean
clean: ## Clean packages
$(RM) super_unko.tar.gz pkg/*.tmp