Skip to content

Instantly share code, notes, and snippets.

@exileed
Created February 9, 2021 11:31
Show Gist options
  • Save exileed/4d9ee93a0d6b109460b722d803f62629 to your computer and use it in GitHub Desktop.
Save exileed/4d9ee93a0d6b109460b722d803f62629 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