Permalink
Browse files

Add Vagrant configuration

With this commit I have added a vagrant configuration for Cilex. The
puppet configuration is specialized for the Ubuntu Precise Pangolin
base box but it works fine for me.

The only issue that is unsolved is that the phpunit binary is not
executable and thus fails if the executable bit is not added.

In addition to adding a vagrant configuration I have also included
PHPUnit in the composer.json and updated the dependencies.
  • Loading branch information...
1 parent 6f73fe8 commit 1fad07cde89d72cbc497569d438a08a375a42571 @mvriel mvriel committed Feb 3, 2013
Showing with 529 additions and 48 deletions.
  1. +1 −0 .gitignore
  2. +32 −0 .puppet/manifests/manifest.pp
  3. +13 −0 Vagrantfile
  4. +2 −1 composer.json
  5. +481 −47 composer.lock
View
@@ -3,3 +3,4 @@ phpunit.xml
cilex.phar
.idea
composer.phar
+.vagrant
@@ -0,0 +1,32 @@
+group { "puppet":
+ ensure => "present",
+}
+
+node default {
+ exec { "apt-get update":
+ command => "/usr/bin/apt-get update"
+ }
+
+ package{["git", "python-setuptools", "wget", "make", "texlive-latex-recommended", "texlive-fonts-recommended", "openjdk-6-jre", "php5-cli", "php5-xdebug"]:
+ ensure => present,
+ require => Exec["apt-get update"]
+ }
+
+ exec { "sudo easy_install -U sphinx":
+ command => "/usr/bin/sudo /usr/bin/easy_install -U sphinx",
+ require => [ Package["python-setuptools"] ],
+ timeout => 0
+ }
+
+ exec { "get-composer":
+ command => "/usr/bin/wget -N http://getcomposer.org/composer.phar",
+ require => Package["wget"],
+ cwd => "/vagrant"
+ }
+
+ exec { "composer-install":
+ command => "/usr/bin/php composer.phar install --dev",
+ require => Exec["get-composer"],
+ cwd => "/vagrant"
+ }
+}
View
@@ -0,0 +1,13 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+
+Vagrant::Config.run do |config|
+ config.vm.box = "precise64"
+ config.vm.box_url = "http://files.vagrantup.com/precise64.box"
+
+ config.vm.provision :puppet do |puppet|
+ puppet.manifests_path = ".puppet/manifests"
+ puppet.manifest_file = "manifest.pp"
+ puppet.options = [ '--verbose' ]
+ end
+end
View
@@ -18,7 +18,8 @@
"cilex/console-service-provider": "1.*@dev"
},
"require-dev":{
- "symfony/validator": "2.1.*"
+ "symfony/validator": "2.1.*",
+ "phpunit/phpunit": "3.7.*"
},
"suggest":{
"monolog/monolog": ">=1.0.0",
Oops, something went wrong.

0 comments on commit 1fad07c

Please sign in to comment.