Skip to content

Instantly share code, notes, and snippets.

@onovaes
Forked from exileed/bitbucket-pipelines.yml
Created May 7, 2021 13:48
Show Gist options
  • Save onovaes/b437abc5565e34b32e55e8e8df85227c to your computer and use it in GitHub Desktop.
Save onovaes/b437abc5565e34b32e55e8e8df85227c to your computer and use it in GitHub Desktop.
image: exileed/php-testing:7.4
pipelines:
default:
- parallel:
- step:
name: CodeStyle Check
caches:
- composer
script:
- composer install
- composer phpcs
- step:
name: PHP Tests
caches:
- composer
script:
- composer install
- composer test
- step:
name: Static Analyse
caches:
- composer
script:
- composer install
- ./vendor/bin/phpstan analyse
branches:
master:
- parallel:
- step:
name: CodeStyle Check
caches:
- composer
script:
- composer install
- composer phpcs
- step:
name: PHP Tests
caches:
- composer
script:
- composer install
- composer test
- step:
name: Static Analyse
caches:
- composer
script:
- composer install
- ./vendor/bin/phpstan analyse
- step:
name: Deploy (Production)
deployment: production
image:
name: kroniak/ssh-client
script:
- ssh $DEPLOY_PRODUCTION_SSH_HOST "bla bla bla "
- step:
name: Sentry Release
script:
- pipe: sentryio/sentry-new-release:0.3.0
variables:
SENTRY_AUTH_TOKEN: '${SENTRY_AUTH_TOKEN}'
SENTRY_ORG: '${SENTRY_ORG}'
SENTRY_PROJECT: '${SENTRY_PROJECT}'
ENVIRONMENT: 'prod' # Optional.
FINALIZE: 'true' # Optional.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment