Sha256: c7848799490016072c1433337850dbbbeb2adbff8fedc6a4da924e2325895690

Contents?: true

Size: 1017 Bytes

Versions: 53

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

53 entries across 53 versions & 1 rubygems

Version Path
beaker-4.30.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.29.1 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.29.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.28.1 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.28.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.27.1 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.27.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.26.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.25.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.24.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.23.2 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.23.1 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.23.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.22.1 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.22.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.21.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.20.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.19.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.18.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.17.0 acceptance/pre_suite/subcommands/08_install_beaker.rb