From 29606b34cb5bce5c3cf656eb8acc137fb0836e76 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 26 Jan 2015 21:08:29 -0500 Subject: Added automatic download and installation of Composer and PHPUnit for Vagrant (merge #550) --- .gitignore | 1 + Vagrantfile | 30 ++++++++++++++++++++++++++++++ docs/tests.markdown | 2 ++ docs/vagrant.markdown | 5 +++++ 4 files changed, 38 insertions(+) diff --git a/.gitignore b/.gitignore index 557137aa..20006c74 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ *.rar *.tar *.zip +*.phar # Logs and databases # ###################### diff --git a/Vagrantfile b/Vagrantfile index 35c6f419..46312e3a 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -7,6 +7,16 @@ echo "ServerName localhost" >> /etc/apache2/apache2.conf service apache2 restart rm -f /var/www/html/index.html date > /etc/vagrant_provisioned_at +# install Composer +curl -s https://getcomposer.org/installer | php +sudo mv composer.phar /usr/local/bin/composer +# install PHPUnit +wget https://phar.phpunit.de/phpunit.phar +chmod +x phpunit.phar +sudo mv phpunit.phar /usr/local/bin/phpunit +phpunit --version +# Set kanboard dir as working dir +echo "cd /var/www/html" >> /home/vagrant/.bashrc SCRIPT $script_mysql = <