Ambiente de testeo

This commit is contained in:
Juan Pablo Vial
2025-04-29 21:41:49 -04:00
parent e6892ee085
commit 2acf0362fa
4 changed files with 151 additions and 60 deletions

View File

@ -2,34 +2,32 @@ services:
testing:
profiles:
- testing
container_name: incoviba_tests
build: .
restart: unless-stopped
container_name: incoviba_tests
env_file:
- ${APP_PATH:-.}/.test.env
- ./.key.env
volumes:
- ${APP_PATH:-.}/:/code
- ./logs/test:/logs
command: [ '/code/bin/phpunit-watcher', 'watch' ]
networks:
- testing
depends_on:
- test-db
test-db:
profiles:
- testing
image: mysql:5.7
image: mariadb:latest
container_name: incoviba_test_db
restart: unless-stopped
env_file: ${APP_PATH:-.}/.test.db.env
volumes:
- test-db:/var/lib/mysql
networks:
- default
- adminer_network
- testing
volumes:
test-db: {}
networks:
adminer_network: {}
testing: {}