diff --git a/.gitignore b/.gitignore index ab908ab..b817054 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,6 @@ workspace.xml # Vagrant .vagrant/ + +# Vagrant site's document root. +/htdocs/ diff --git a/vagrant/index.php b/vagrant/index.php new file mode 100644 index 0000000..7aa012a --- /dev/null +++ b/vagrant/index.php @@ -0,0 +1,3 @@ + /dev/null +fi +if [ ! -h /vagrant/htdocs/docs ] ; then + ln -s /vagrant/docs/build/html /vagrant/htdocs/docs +fi +if [ ! -h /vagrant/htdocs/coverage ] ; then + ln -s /vagrant/report /vagrant/htdocs/coverage +fi +cp /vagrant/vagrant/index.php /vagrant/htdocs/index.php + # Install Composer dependencies composer --working-dir=/vagrant install +# Restart services. +service php5-fpm restart +service nginx restart + # Run the unit tests. cd /vagrant vendor/bin/phpunit