Skip to content

Instantly share code, notes, and snippets.

@webbgeorge
webbgeorge / install.sh
Last active May 24, 2016 21:13
Install PHPCI on amazon linux in EC2
#!/bin/bash
# Ensure in user's home dir to start
cd ~
# Yum packages
sudo yum update -y
sudo yum install -y httpd24 mysql-server php55 php55-devel php55-common php55-cli php55-pecl-apc php55-pdo php55-xml php55-gd php55-mbstring php-pear php55-mysqlnd php55-mcrypt
# Start apache and start on boot
@webbgeorge
webbgeorge / bitbucket-pipelines.yml
Created June 9, 2016 10:26
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