Skip to content

Bitbucket Pipeline

Krzysztof Tomasz Zembrowski edited this page Nov 18, 2020 · 6 revisions

Enable Pipelines in Repository settings > Pipelines > Settings.

Add bitbucket-pipelines.yml to your repository.

Example:

image: rechtlogisch/deployer

pipelines:
  default:
    - step:
        name: Test
        caches:
          - composer
        script:
          - composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts 
          - composer test
    - step:
        name: Deploy
        deployment: production
        script:
          - dep deploy production

For deployment add deploy.php and hosts.yml to your repository (cf. Deployer 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)

Clone this wiki locally