Sha256: f157a9875fa28b758fa4e53b5034ea2c95e357c18df3c87ef20ff320df7709c0

Contents?: true

Size: 1017 Bytes

Versions: 16

Compression:

Stored size: 1017 Bytes

Contents

test_name 'Install beaker and checkout branch if necessary' do
  step 'Download the beaker git repo' do
    on default, 'git clone https://github.com/puppetlabs/beaker.git /opt/beaker/'
  end

  step 'Detect if checking out branch for testing and checkout' do
    if ENV['BEAKER_PULL_ID']
      logger.notify "Pull Request detected, checking out PR branch"
      on(default, 'cd /opt/beaker/;git -c core.askpass=true fetch --tags --progress https://github.com/puppetlabs/beaker.git +refs/pull/*:refs/remotes/origin/pr/*')
      on(default, "cd /opt/beaker/;git merge origin/pr/#{ENV['BEAKER_PULL_ID']}/head --no-edit")
    else
      logger.notify 'No PR branch detected, building from master'
    end
  end

  step 'Build the gem and install it on the local system' do
    build_output = on(default, 'cd /opt/beaker/;gem build beaker.gemspec').stdout
    version = build_output.match(/^  File: (.+)$/)[1]
    on(default, "cd /opt/beaker/;gem install #{version} --no-document; gem install beaker-vmpooler")
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
beaker-6.4.1 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-6.4.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-6.3.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-6.2.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-6.1.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-5.8.1 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-5.8.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-5.7.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-5.6.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-5.5.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-5.4.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-5.3.1 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-5.3.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-5.2.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-5.1.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-5.0.0 acceptance/pre_suite/subcommands/08_install_beaker.rb