Browse Source

Install PHP-Unit within existing vagrant box’s path.

php-unit
Fabien Basmaison 2 years ago
parent
commit
9484737726
  1. 4
      Vagrantfile
  2. 15
      vagrant/user-php-unit.sh

4
Vagrantfile

@ -28,6 +28,10 @@ Vagrant.configure("2") do |config|
type: :shell,
path: "vagrant/root-os.sh"
config.vm.provision 'phpunit',
type: :shell,
path: "vagrant/user-php-unit.sh"
# Provision with vagrant user.
# ===========================================================================
config.vm.provision 'spip',

15
vagrant/user-php-unit.sh

@ -0,0 +1,15 @@
#! /bin/bash
cd /usr/bin/;
echo "
`date '+%H:%M'`: Downloading PHP-Unit and making it executable…
==============================================================================";
PHPUNIT_PHAR_URL=https://phar.phpunit.de/phpunit-8.phar;
curl --silent --show-error --location "$PHPUNIT_PHAR_URL" --output phpunit;
chmod +x phpunit;
phpunit --version;
cd -;
Loading…
Cancel
Save