Update Vagrant PHP to v5.6

This commit is contained in:
PJ Dietz 2016-05-18 20:26:53 -04:00
parent 0c61641376
commit e9a18ba224
1 changed files with 5 additions and 8 deletions

View File

@ -1,5 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# PHP-5.6 repository
if ! apt-cache policy | grep ondrej/php5-5.6 ; then
apt-add-repository -y ppa:ondrej/php5-5.6
fi
apt-get update apt-get update
apt-get install -q -y git augeas-tools nginx php5 php5-fpm php5-cli php5-curl php5-xdebug python-pip apt-get install -q -y git augeas-tools nginx php5 php5-fpm php5-cli php5-curl php5-xdebug python-pip
@ -62,14 +67,6 @@ composer --working-dir=/vagrant install
service php5-fpm restart service php5-fpm restart
service nginx restart service nginx restart
# Run the unit tests.
cd /vagrant
vendor/bin/phpunit
# Build the documentation.
cd /vagrant/docs
make clean && make html
# Drop the user into the /vagrant directory on log in and dislay a message. # Drop the user into the /vagrant directory on log in and dislay a message.
if ! grep /home/vagrant/.bashrc -e "cd /vagrant" &> /dev/null ; then if ! grep /home/vagrant/.bashrc -e "cd /vagrant" &> /dev/null ; then
echo "cd /vagrant" >> /home/vagrant/.bashrc echo "cd /vagrant" >> /home/vagrant/.bashrc