mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 01:31:45 +01:00
1.7 KiB
1.7 KiB
Meritoo Common Library
Development-related information
Requirements
- Docker
- Your favourite IDE :)
Getting started
-
Build, create and start Docker's containers by running command:
docker-compose up -d -
Install packages by running command:
docker-compose run composer install
Composer
Available as composer service. You can run any Composer's command using the composer service:
docker-compose run composer <command>
Examples below.
Install packages
docker-compose run composer install
Update packages
docker-compose run composer update
Add package
docker-compose run composer require <vendor>/<package>
Remove package
docker-compose run composer remove <vendor>/<package>
Tests
Prerequisites
Install required packages by running command: docker-compose run composer install.
Running tests
Simply & quick, without code coverage
Tests are running using Docker and php-cli service defined in docker-compose.yml. Example:
docker-compose exec php-cli phpunit --no-coverage
You can also run them in container. In this case you have to run 2 commands:
-
Enter container:
docker-compose exec php-cli bash -
Run tests:
phpunit --no-coverage
With code coverage
docker-compose exec php-cli phpunit
Other
Rebuild project and run tests by running command:
docker-compose exec php-cli phing