Skip to content

Commit cc545df

Browse files
committed
ci: replace docker-compose commands with docker compose
1 parent 4fb1694 commit cc545df

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

bin/run-docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -eu
44

55
##
66
# Use this script through Composer scripts in the package.json.
7-
# To quickly build and run the docker-compose scripts for an app or automated testing
7+
# To quickly build and run the `docker compose` scripts for an app or automated testing
88
# run the command below after run `composer install --no-dev` with the respectively
99
# flag for what you need.
1010
##
@@ -82,7 +82,7 @@ case "$subcommand" in
8282
WP_VERSION=${WP_VERSION} PHP_VERSION=${PHP_VERSION} docker compose up app
8383
;;
8484
t )
85-
docker-compose run --rm \
85+
docker compose run --rm \
8686
-e COVERAGE=${COVERAGE-} \
8787
-e USING_XDEBUG=${USING_XDEBUG-} \
8888
-e DEBUG=${DEBUG-} \

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"install-test-env": "bash bin/install-test-env.sh",
7171
"docker-build": "bash bin/run-docker.sh build",
7272
"docker-run": "bash bin/run-docker.sh run",
73-
"docker-destroy": "docker-compose down",
73+
"docker-destroy": "docker compose down",
7474
"build-and-run": [
7575
"@docker-build",
7676
"@docker-run"

docs/testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,13 @@ PHP_VERSION=8.1 WP_VERSION=6.0 SUITES=acceptance composer run-test
273273
Log into the docker shell prompt:
274274

275275
```shell
276-
docker-compose run --entrypoint bash -- testing
276+
docker compose run --entrypoint bash -- testing
277277
```
278278

279279
Specify the PHP and/or WordPress versions to use that environment. Environment must have been built previously using instructions above.
280280

281281
```shell
282-
PHP_VERSION=8.1 WP_VERSION=6.0 docker-compose run --entrypoint bash -- testing
282+
PHP_VERSION=8.1 WP_VERSION=6.0 docker compose run --entrypoint bash -- testing
283283
```
284284

285285
Run the setup script, which also runs the test suite. This needs to be run at least once after logging into the docker bash shell prompt. If you log out, the settings are not saved and must be re-run after opening the docker shell prompt.

0 commit comments

Comments
 (0)