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.42.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.41.2 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.41.1 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.41.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.40.2 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.40.1 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.40.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.39.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.38.1 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.38.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.37.2 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.37.1 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.37.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.36.1 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.36.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.35.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.34.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.33.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.32.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-4.31.0 acceptance/pre_suite/subcommands/08_install_beaker.rb