Virtual machine with vagrant to do kata coding exercises in PHP.
##Steps to Start
-
Clone repository
git clone https://github.com/mglolmos/vagrant-kata-php.gitor
git clone https://github.com/mglolmos/vagrant-kata-php.git <name_folder_kata> -
Go to clone repository
cd vagrant-kata-phpor
cd <name_folder_kata> -
Start vagrant machine
vagrant up -
Connect with SSH to vagrant machine
vagrant ssh -
Launch the test
/kata/vendor/bin/phpunit --configuration /kata/phpunit.xml /kata/test -
Now, you can start the kata in your host machine in
/path/where/clone/repository/kataand execute the test like step 5.
##Steps to Stop
-
Stop vagrant machine
vagrant halt -
If you want delete vagrant machine
vagrant destroy
##Shared folders
| Host Machine | Vagrant Machine |
|---|---|
| /path/where/clone/repository | /vagrant |
| /path/where/clone/repository/kata | /kata |
##Package This vagrant contains the next packages:
- php5
- phpunit
- composer
- curl