Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 2.06 KB

installation.md

File metadata and controls

59 lines (40 loc) · 2.06 KB

#Beaker Installation

In most cases, beaker is running on a system separate from the SUT; we will commonly refer to this system as the beaker coordinator. This page outlines how to install requirements for the beaker coordinator and options for the installation of beaker itself.

Beaker Requirements

  • Ruby >= 2.2.5
  • libxml2, libxslt (needed for the Nokogiri gem)
  • g++ (needed for the unf_ext gem)
  • curl (needed for some DSL functions to be able to execute successfully)

On a Debian or Ubuntu system you can install these using the command

sudo apt-get install ruby-dev libxml2-dev libxslt1-dev g++ zlib1g-dev

On an EL or Fedora system use:

sudo yum install make gcc gcc-c++ libxml2-devel libxslt-devel ruby-devel

##Installing Beaker ###From Gem (Preferred)

$ gem install beaker
$ beaker --help

###From Latest Git

If you need the latest and greatest (and mostly likely broken/untested/no warranty) beaker code.

$ git clone https://github.com/puppetlabs/beaker
$ cd beaker
$ bundle install
$ bundle exec beaker --help

###From Latest Git, As Installed Gem

If you need the latest and greatest, but prefer to work from gem instead of through bundler.

$ gem uninstall beaker
$ git clone https://github.com/puppetlabs/beaker
$ cd beaker
$ gem build beaker.gemspec
$ gem install ./beaker-*.gem

###Special Case Installation

The beaker gem can be built and installed in the context of the current test suite by adding the github repos as the source in the Gemspec file (see bundler git documentation).

source 'https://rubygems.org'
group :testing do
  gem 'cucumber', '~> 1.3.6'
  gem 'site_prism'
  gem 'selenium-webdriver'
  gem 'chromedriver2-helper'
  gem 'beaker', :github => 'puppetlabs/beaker', :branch => 'master', :ref => 'fffe7'
end