msonnabaum / chef-phpunit Goto Github PK
View Code? Open in Web Editor NEWChef cookbook for phpunit
Chef cookbook for phpunit
Just running into this now. We get a bunch of conflicts thrown during chef run involving the PEAR method while using a hardy base box. When I get a sec, I'll likely just add an attribute to choose the install_method (like in the php cookbook), and have a recipe for installing using apt-get (which seems to work fine).
Cheers!
Hey Mark,
Just a first glimpse of this for me, but do you think the cookbook needs something to deal with PHPUnit vs PHPUnit2 (PHP4 vs PHP5)?
Cheers!
As seen on http://pear.phpunit.de/
(just dropping an issue in case anyone runs into it)
Hello,
I'm trying to use your phpunit recipe to install it on my Vagrant VM, but it doesn't seem to work for me. I'm not sure that it's your fault though. I downloaded a copy of the opscode php cookbook and a copy of your phpunit cookbook, and ran the recipes, but nothing happens. I see the lines in the console where it looks like it's installing the latest version of phpunit, and there are no errors in the console, but when I ssh into the VM, phpunit is not installed.
I tweaked your recipe to not use the php_pear definitions, and execute the commands manually, and it seemed to work. Here's my version:
execute "upgrade pear" do
command "pear channel-update pear.php.net"
command "pear upgrade-all"
action :run
end
channels = %w{pear.phpunit.de components.ez.no pear.symfony-project.com}
channels.each do |chan|
php_pear_channel chan do
action [:discover, :update]
end
end
php_pear "HTTP_Request2" do
preferred_state "beta"
action :install
end
php_pear "XML_RPC2" do
action :install
end
execute "install phpunit" do
command "pear -d preferred_state=beta install --alldeps pear.phpunit.de/PHPUnit"
action :run
end
I don't know enough about chef to understand what's wrong with the original (or even how to properly write a chef recipe) so all I've done is hack something together that worked for me. Hopefully this helps you to figure out the problem.
https://github.com/msonnabaum/chef-phpunit/blob/master/metadata.rb#L7
depends "php::pear"
should be
depends "php"
Will submit pull request
Also, I present to you: THE MANATEE.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.