Skip to content

Commit 351fa25

Browse files
committed
build
1 parent 285e192 commit 351fa25

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ clean:
3737

3838
test-sentinel:
3939
make build
40-
PHP_VERSION=$(filter-out $@,$(v)) docker-compose -f tests/docker/docker-compose.yml build --pull yii2-redis-php
41-
PHP_VERSION=$(filter-out $@,$(v)) docker-compose -f tests/docker/docker-compose.yml run yii2-redis-php vendor/bin/phpunit --coverage-clover=coverage.clover
40+
PHP_VERSION=$(filter-out $@,$(v)) docker compose -f tests/docker/docker-compose.yml build --pull yii2-redis-php
41+
PHP_VERSION=$(filter-out $@,$(v)) docker compose -f tests/docker/docker-compose.yml run yii2-redis-php vendor/bin/phpunit --coverage-clover=coverage.clover
4242
make down
4343

4444
build: ## Build an image from a docker-compose file. Params: {{ v=8.1 }}. Default latest PHP 8.1
45-
PHP_VERSION=$(filter-out $@,$(v)) docker-compose -f tests/docker/docker-compose.yml up -d --build
45+
PHP_VERSION=$(filter-out $@,$(v)) docker compose -f tests/docker/docker-compose.yml up -d --build
4646

4747
down: ## Stop and remove containers, networks
48-
docker-compose -f tests/docker/docker-compose.yml down
48+
docker compose -f tests/docker/docker-compose.yml down
4949

tests/docker/docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: '3.8'
21

32
# NOTE: When using docker-compose for testing, make sure you set 'hostname' to 'redis' in tests/data/config.php
43

tests/docker/php.ini

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
xdebug.mode=debug
3+
xdebug.discover_client_host=1
4+
xdebug.start_with_request=yes
5+
6+
xdebug.client_host=host.docker.internal
7+
xdebug.client_port=9003
8+
xdebug.idekey=PHPSTORM
9+
xdebug.scream=1
10+
xdebug.force_display_errors=1
11+

0 commit comments

Comments
 (0)