Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved docker compose for tests
Browse files Browse the repository at this point in the history
Robert committed Jul 18, 2024
1 parent 4e4db31 commit e3f8e00
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -3,11 +3,15 @@ x-params:
environment:
XDEBUG_MODE: coverage
volumes:
- ./:/app
- ./src/:/app/src:ro
- ./tests/:/app/tests:ro
- ./composer.json/:/app/composer.json:ro
- ./phpunit.xml.dist/:/app/phpunit.xml.dist:ro
- /app/tests/Bundle/App/var # anonymous writable volume for cache/logs
command:
- sh
- -c
- 'rm -f composer.lock && rm -rf tests/Bundle/App/var/cache && composer install && vendor/bin/simple-phpunit --coverage-text'
- 'composer install && vendor/bin/simple-phpunit --coverage-text'

# To run test just exec e.g. 'docker compose run --rm php8.1'
services:

0 comments on commit e3f8e00

Please sign in to comment.