forked from DoclerLabs/api-client-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (16 loc) · 981 Bytes
/
Copy pathMakefile
File metadata and controls
21 lines (16 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY: $(filter-out help, $(MAKECMDGOALS))
.DEFAULT_GOAL := help
help:
@echo "\033[33mUsage:\033[0m\n make [target] [arg=\"val\"...]\n\n\033[33mTargets:\033[0m"
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[32m%-10s\033[0m %s\n", $$1, $$2}'
test: ## run test suites
docker-compose up -d --build --remove-orphans
docker-compose run --rm wait -c wiremock:8080 -t 60
docker-compose exec -T php vendor/bin/phpunit -c phpunit.xml.dist --colors=always
docker-compose down
cs: ## fix code style
docker-compose run php vendor/bin/php-cs-fixer fix .
stan: ## statically analyse code
docker-compose run php vendor/bin/phpstan analyse src
coverage: ## coverage for pipeline
docker-compose run -e COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN} -e GITHUB_REF=${GITHUB_REF} -e GITHUB_ACTIONS=${GITHUB_ACTIONS} -e GITHUB_RUN_ID=${GITHUB_RUN_ID} -e GITHUB_EVENT_NAME=${GITHUB_EVENT_NAME} php vendor/bin/php-coveralls -v