Skip to content

Instantly share code, notes, and snippets.

@qopqopqop
Forked from webbgeorge/bitbucket-pipelines.yml
Created August 13, 2017 04:52
Show Gist options
  • Save qopqopqop/907d1adc3b75ad3140241e10d8a8962e to your computer and use it in GitHub Desktop.
Save qopqopqop/907d1adc3b75ad3140241e10d8a8962e to your computer and use it in GitHub Desktop.
Example bitbucket pipelines config for PHP project
image: phpunit/phpunit:4.6.10
pipelines:
default:
- step:
script:
- pecl install xdebug && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini
- composer --version
- composer install
- vendor/bin/phpunit --version
- vendor/bin/phpunit --coverage-text --configuration phpunit.xml
- vendor/bin/phpcs --standard=PSR2 src/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment