-
Notifications
You must be signed in to change notification settings - Fork 0
Bitbucket Pipeline
Krzysztof Tomasz Zembrowski edited this page Mar 21, 2023
·
6 revisions
Enable Pipelines in Repository settings > Pipelines > Settings.
Add bitbucket-pipelines.yml to your repository.
Example:
image: ghcr.io/rechtlogisch/php-with-ffi
pipelines:
default:
- step:
name: Test
caches:
- composer
script:
- composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts
- composer testBitbucket triggers Pipeline jobs on every push to the repository. You can adjust this behavior adding trigger: manual or by replacing the default with a custom pipeline in bitbucket-pipelines.yml file (cf. Bitbucket Documentation)
To run tests with composer test add for example vendor/bin/pest to the scripts property of your composer.json (cf. Composer documentation and Pest PHP)