Skip to content

Commit

Permalink
Switch from mixed case to uppercase env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Sep 20, 2023
1 parent e4b8742 commit 5402702
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- unit
runs-on: ubuntu-latest
env:
BEAKER_setfile: debian10-64
BEAKER_SETFILE: debian10-64
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ require 'voxpupuli/acceptance/rake'
It can then be invoked as:

```bash
BEAKER_setfile=centos7-64 bundle exec rake beaker
BEAKER_SETFILE=centos7-64 bundle exec rake beaker
```

Other common environment variables:
Expand Down
4 changes: 2 additions & 2 deletions lib/voxpupuli/acceptance/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

def configure_beaker(modules: :metadata, &block)
collection = ENV['BEAKER_PUPPET_COLLECTION'] || 'puppet'
ENV['BEAKER_debug'] ||= 'true'
ENV['BEAKER_DEBUG'] ||= 'true'
ENV['BEAKER_HYPERVISOR'] ||= 'docker'

# On Ruby 3 this doesn't appear to matter but on Ruby 2 beaker-hiera must be
Expand All @@ -13,7 +13,7 @@ def configure_beaker(modules: :metadata, &block)

require_relative 'fixtures' if modules == :fixtures

unless ENV['BEAKER_provision'] == 'no'
unless ENV['BEAKER_PROVISION'] == 'no'
block_on hosts, run_in_parallel: true do |host|
BeakerPuppetHelpers::InstallUtils.install_puppet_release_repo_on(host, collection) unless collection == 'none'
package_name = BeakerPuppetHelpers::InstallUtils.puppet_package_name(host)
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper_acceptance_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
describe 'spec_helper_acceptance' do
describe '#configure_beaker' do
context 'without provisioning' do
before(:example) { ENV['BEAKER_provision'] = 'no' }
before(:example) { ENV['BEAKER_PROVISION'] = 'no' }

it 'configures RSpec' do
allow(RSpec).to receive(:configure)
Expand Down

0 comments on commit 5402702

Please sign in to comment.