mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Docker > rename "php-cli" service to "php"
This commit is contained in:
@@ -61,13 +61,13 @@ docker-compose run composer remove <vendor>/<package>
|
||||
Fix coding standard by running command:
|
||||
|
||||
```bash
|
||||
docker-compose exec php-cli php-cs-fixer fix
|
||||
docker-compose exec php php-cs-fixer fix
|
||||
```
|
||||
|
||||
Omit cache and run the Fixer from scratch by running command:
|
||||
|
||||
```bash
|
||||
docker-compose exec php-cli rm .php_cs.cache && docker-compose exec php-cli php-cs-fixer fix
|
||||
docker-compose exec php rm .php_cs.cache && docker-compose exec php php-cs-fixer fix
|
||||
```
|
||||
|
||||
> [Want more?](https://cs.sensiolabs.org)
|
||||
@@ -82,17 +82,17 @@ Install required packages by running command: `docker-compose run composer insta
|
||||
|
||||
#### Simply & quick, without code coverage
|
||||
|
||||
Tests are running using Docker and `php-cli` service defined in `docker-compose.yml`. Example:
|
||||
Tests are running using Docker and `php` service defined in `docker-compose.yml`. Example:
|
||||
|
||||
```bash
|
||||
docker-compose exec php-cli phpunit --no-coverage
|
||||
docker-compose exec php phpunit --no-coverage
|
||||
```
|
||||
|
||||
You can also run them in container. In this case you have to run 2 commands:
|
||||
1. Enter container:
|
||||
|
||||
```bash
|
||||
docker-compose exec php-cli bash
|
||||
docker-compose exec php bash
|
||||
```
|
||||
|
||||
2. Run tests:
|
||||
@@ -104,7 +104,7 @@ You can also run them in container. In this case you have to run 2 commands:
|
||||
#### With code coverage
|
||||
|
||||
```bash
|
||||
docker-compose exec php-cli phpunit
|
||||
docker-compose exec php phpunit
|
||||
```
|
||||
|
||||
# Other
|
||||
@@ -112,7 +112,7 @@ docker-compose exec php-cli phpunit
|
||||
Rebuild project and run tests by running command:
|
||||
|
||||
```bash
|
||||
docker-compose exec php-cli phing
|
||||
docker-compose exec php phing
|
||||
```
|
||||
|
||||
[‹ Back to `Readme`](../README.md)
|
||||
|
||||
Reference in New Issue
Block a user