Skip to content

Commit 8f4c350

Browse files
authored
Fix tests (#524)
1 parent 9dd5534 commit 8f4c350

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Makefile

+10-10
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@ help: ## Display help information
33

44
build: ## Build an image from a docker-compose file. Params: {{ v=5.6 }}. Default latest PHP 5.6
55
@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
77

88
test: ## Run tests. Params: {{ v=5.6 }}. Default latest PHP 5.6
9-
PHP_VERSION=$(filter-out $@,$(v)) docker-compose build --pull yii2-queue-php
10-
PHP_VERSION=$(filter-out $@,$(v)) docker-compose run yii2-queue-php vendor/bin/phpunit --colors=always -v --debug
9+
PHP_VERSION=$(filter-out $@,$(v)) docker compose build --pull yii2-queue-php
10+
PHP_VERSION=$(filter-out $@,$(v)) docker compose run yii2-queue-php vendor/bin/phpunit --colors=always -v --debug
1111
make down
1212

1313
down: ## Stop and remove containers, networks
14-
docker-compose down
14+
docker compose down
1515

1616
benchmark: ## Run benchmark. Params: {{ v=5.6 }}. Default latest PHP 5.6
17-
PHP_VERSION=$(filter-out $@,$(v)) docker-compose build --pull yii2-queue-php
18-
PHP_VERSION=$(filter-out $@,$(v)) docker-compose run yii2-queue-php tests/yii benchmark/waiting
17+
PHP_VERSION=$(filter-out $@,$(v)) docker compose build --pull yii2-queue-php
18+
PHP_VERSION=$(filter-out $@,$(v)) docker compose run yii2-queue-php tests/yii benchmark/waiting
1919
make down
2020

2121
sh: ## Enter the container with the application
2222
docker exec -it yii2-queue-php bash
2323

2424
check-cs:
25-
docker-compose build php72
26-
docker-compose run php72 php-cs-fixer fix --diff --dry-run
27-
docker-compose down
25+
docker compose build php72
26+
docker compose run php72 php-cs-fixer fix --diff --dry-run
27+
docker compose down
2828

2929
clean:
30-
docker-compose down
30+
docker compose down
3131
rm -rf tests/runtime/*
3232
rm -f .php_cs.cache
3333
rm -rf composer.lock

0 commit comments

Comments
 (0)