Skip to content

Commit

Permalink
Change in the plan to fix fetching test-kitchen gem
Browse files Browse the repository at this point in the history
Signed-off-by: nitin sanghi <[email protected]>
  • Loading branch information
sanghinitin committed Nov 5, 2024
1 parent 2e4cbc0 commit 2e90b71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions habitat/plan.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function Invoke-Build {
Write-BuildLine " ** Using bundler to retrieve the Ruby dependencies"
bundle install

gem build test-kitchen.gemspec
gem build chef-test-kitchen-enterprise.gemspec
Write-BuildLine " ** Using gem to install"
gem install chef-test-kitchen-enterprise*.gem --no-document
gem install kitchen-dokken
Expand All @@ -65,11 +65,11 @@ function Invoke-Install {
try {
Push-Location $pkg_prefix
bundle config --local gemfile $project_root/Gemfile
Write-BuildLine "** generating binstubs for test-kitchen with precise version pins"
Write-BuildLine "** generating binstubs for test-kitchen with precise version pins $project_root $pkg_prefix/bin "
Invoke-Expression -Command "appbundler.bat $project_root $pkg_prefix/bin test-kitchen"
Write-BuildLine "** generating binstubs for chef-test-kitchen-enterprise with precise version pins"
Write-BuildLine "** generating binstubs for chef-test-kitchen-enterprise with precise version pins $project_root $pkg_prefix/bin "
Invoke-Expression -Command "appbundler.bat $project_root $pkg_prefix/bin chef-test-kitchen-enterprise"
If ($lastexitcode -ne 0) { Exit $lastexitcode }
Write-BuildLine " ** Running the test-kitchen project's 'rake install' to install the path-based gems so they look like any other installed gem."
Write-BuildLine " ** Running the chef-test-kitchen-enterprise project's 'rake install' to install the path-based gems so they look like any other installed gem."

If ($lastexitcode -ne 0) { Exit $lastexitcode }
} finally {
Expand Down
2 changes: 1 addition & 1 deletion habitat/plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ do_install() {
build_line "** fixing binstub shebangs"
fix_interpreter "${pkg_prefix}/vendor/bin/*" "$_chef_client_ruby" bin/ruby
export BUNDLE_GEMFILE="${CACHE_PATH}/Gemfile"
for gem in test-kitchen; do
for gem in chef-test-kitchen-enterprise; do
build_line "** generating binstubs for $gem with precise version pins"
appbundler $CACHE_PATH $pkg_prefix/bin $gem
done
Expand Down

0 comments on commit 2e90b71

Please sign in to comment.