Skip to content

Instantly share code, notes, and snippets.

@webbgeorge
Created June 9, 2016 10:26
Show Gist options
  • Save webbgeorge/cb9eb10b596ea3783143d1d76159f72c to your computer and use it in GitHub Desktop.
Save webbgeorge/cb9eb10b596ea3783143d1d76159f72c 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