Skip to content

Instantly share code, notes, and snippets.

@kohlerdominik
Created January 13, 2020 08:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kohlerdominik/9e20dca440dbf7160496b0d590832aec to your computer and use it in GitHub Desktop.
Save kohlerdominik/9e20dca440dbf7160496b0d590832aec to your computer and use it in GitHub Desktop.
Simple PHPUnit Testing in Bitbucket Pipeline
pipelines:
pull-requests:
'**':
- step:
name: Build Testing
image: composer:latest
artifacts:
- "vendor/**"
script:
# Install php dependencies
- composer install --ignore-platform-reqs --optimize-autoloader
- step:
name: Run Tests
image: php:apache
script:
# Run tests
- vendor/bin/phpunit --log-junit $BITBUCKET_CLONE_DIR/test-reports/junit.xml
@artyomliou
Copy link

Thank you, save my day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment