Permalink
Browse files

* recipe to init saucelab's on demand service

  • Loading branch information...
1 parent 6f441c6 commit f69831b515beb6a64caca343005c42ab98baade7 @till committed Feb 19, 2011
Showing with 28 additions and 0 deletions.
  1. +28 −0 saucelabs/recipes/default.rb
@@ -0,0 +1,28 @@
+package "php-pear"
+
+execute "upgrade: PEAR" do
+ command "pear upgrade PEAR"
+end
+
+pear_channels = [ "pear.phpunit.de", "components.ez.no", "pear.symfony-project.com", "saucelabs.github.com/pear" ]
+
+pear_channels.each { |channel|
+
+ execute "discover: #{channel}" do
+ command "pear channel-discover #{channel}"
+ end
+
+ execute "update: #{channel}" do
+ command "pear channel-update #{channel}"
+ end
+
+}
+
+execute "install PHPUnit_Selenium_SauceOnDemand" do
+ command "pear install -a saucelabs/PHPUnit_Selenium_SauceOnDemand"
+end
+
+# needs custom json via scalarium
+execute "configure: SauceOnDemand" do
+ command "sauce configure easybib #{node["saucelabs"]["apikey"]}"
+end

0 comments on commit f69831b

Please sign in to comment.