|
1 | 1 | help: ## Display help information |
2 | 2 | @fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' |
3 | 3 |
|
4 | | -build: ## Build an image from a docker-compose file. Params: {{ v=8.1 }}. Default latest PHP 8.1 |
| 4 | +build: ## Build an image from a docker-compose file. Params: {{ v=8.2 }}. Default latest PHP 8.2 |
5 | 5 | @cp -n .env.example .env |
6 | | - PHP_VERSION=$(filter-out $@,$(v)) docker-compose up -d --build |
| 6 | + PHP_VERSION=$(filter-out $@,$(v)) docker compose up -d --build |
7 | 7 | make create-sqs-queue |
8 | 8 | make create-sqs-fifo-queue |
9 | 9 |
|
10 | | -test: ## Run tests. Params: {{ v=8.1 }}. Default latest PHP 8.1 |
| 10 | +test: ## Run tests. Params: {{ v=8.2 }}. Default latest PHP 8.2 |
11 | 11 | make build |
12 | | - PHP_VERSION=$(filter-out $@,$(v)) docker-compose run yii2-queue-php vendor/bin/phpunit --coverage-clover coverage.xml |
| 12 | + PHP_VERSION=$(filter-out $@,$(v)) docker compose run yii2-queue-php vendor/bin/phpunit --coverage-clover coverage.xml |
13 | 13 | make down |
14 | 14 |
|
15 | 15 | down: ## Stop and remove containers, networks |
16 | | - docker-compose down |
| 16 | + docker compose down |
17 | 17 |
|
18 | | -benchmark: ## Run benchmark. Params: {{ v=8.1 }}. Default latest PHP 8.1 |
19 | | - PHP_VERSION=$(filter-out $@,$(v)) docker-compose build --pull yii2-queue-php |
20 | | - PHP_VERSION=$(filter-out $@,$(v)) docker-compose run yii2-queue-php tests/yii benchmark/waiting |
| 18 | +benchmark: ## Run benchmark. Params: {{ v=8.2 }}. Default latest PHP 8.2 |
| 19 | + PHP_VERSION=$(filter-out $@,$(v)) docker compose build --pull yii2-queue-php |
| 20 | + PHP_VERSION=$(filter-out $@,$(v)) docker compose run yii2-queue-php tests/yii benchmark/waiting |
21 | 21 | make down |
22 | 22 |
|
23 | 23 | sh: ## Enter the container with the application |
24 | 24 | docker exec -it yii2-queue-php sh |
25 | 25 |
|
26 | | -static-analyze: ## Run code static analyze. Params: {{ v=8.1 }}. Default latest PHP 8.1 |
27 | | - PHP_VERSION=$(filter-out $@,$(v)) docker-compose build --pull yii2-queue-php |
28 | | - PHP_VERSION=$(filter-out $@,$(v)) docker-compose run yii2-queue-php vendor/bin/psalm --config=psalm.xml --shepherd --stats --php-version=$(v) |
| 26 | +static-analyze: ## Run code static analyze. Params: {{ v=8.2 }}. Default latest PHP 8.2 |
| 27 | + PHP_VERSION=$(filter-out $@,$(v)) docker compose build --pull yii2-queue-php |
| 28 | + PHP_VERSION=$(filter-out $@,$(v)) docker compose run yii2-queue-php vendor/bin/psalm --config=psalm.xml --shepherd --stats --php-version=$(v) |
29 | 29 | make down |
30 | 30 |
|
31 | 31 | clean: |
32 | | - docker-compose down |
| 32 | + docker compose down |
33 | 33 | rm -rf tests/runtime/* |
34 | 34 | rm -f .php_cs.cache |
35 | 35 | rm -rf composer.lock |
|
0 commit comments