-
-
Notifications
You must be signed in to change notification settings - Fork 190
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 952 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 952 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
help: ## Display help information.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
start: ## Start services
docker compose up -d
test: ## Run tests. Params: {{ v=8.1 }}.
PHP_VERSION=$(filter-out $@,$(v)) docker compose up -d --build
docker exec yii2-bootstrap-php-1 sh -c "php -v && composer update && vendor/bin/phpunit --coverage-clover=coverage.xml"
make down
build: ## Build an image from a docker-compose file. Params: {{ v=8.1 }}.
PHP_VERSION=$(filter-out $@,$(v)) docker compose up -d --build
down: ## Stop and remove containers, networks
docker compose down
sh: ## Enter the container with the application
docker exec -it yii2-bootstrap-php-1 bash
static-analysis: ## Run code static analyze. Params: {{ v=8.1 }}.
make build v=$(filter-out $@,$(v))
docker exec yii2-bootstrap-php-1 sh -c "php -v && composer update && vendor/bin/phpstan analyse --memory-limit 512M"
make down