Created
January 13, 2020 08:55
-
-
Save kohlerdominik/9e20dca440dbf7160496b0d590832aec to your computer and use it in GitHub Desktop.
Simple PHPUnit Testing in Bitbucket Pipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you, save my day!