Skip to content

Instantly share code, notes, and snippets.

@karrikas
Created January 28, 2021 12:42
Show Gist options
  • Save karrikas/f809b80a0e650fdce29720622e6df2ae to your computer and use it in GitHub Desktop.
Save karrikas/f809b80a0e650fdce29720622e6df2ae to your computer and use it in GitHub Desktop.
Phpunit test in Symfony proyect with bitbucket
image: docker/compose
options:
docker: true
pipelines:
default:
- step:
size: 2x # double memory (8GB) for this step
script:
- ls -alh
- docker-compose up -d
- sleep 10
- docker-compose ps
- docker-compose exec -T php composer install --dev
- docker-compose exec -T php php bin/phpunit --testdox
- docker-compose down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment