Sha256: ad920f87b895ca99be7eb4be64558064294b9cc8c74c943224369269dfb52db7

Contents?: true

Size: 992 Bytes

Versions: 28

Compression:

Stored size: 992 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-rdoc --no-ri")
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
beaker-3.37.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.36.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.35.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.34.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.33.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.32.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.31.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.30.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.29.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.28.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.27.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.26.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.25.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.24.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.23.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.22.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.21.1 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.21.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.20.0 acceptance/pre_suite/subcommands/08_install_beaker.rb
beaker-3.19.0 acceptance/pre_suite/subcommands/08_install_beaker.rb