diff options
author | Bryan McLellan <btm@chef.io> | 2020-05-13 16:30:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-13 16:30:01 -0400 |
commit | aaf93801274f437d03dce045a5cc2734f089271b (patch) | |
tree | e15cc325584e515f5167f3f8034f93b7f9d84c2a /scripts/bk_tests/bk_run_choco.ps1 | |
parent | 2e58fd6d0b95003b1b5b2722373ca5cde835dcb7 (diff) | |
parent | 82a20300c36ff632224efcafd8758c684d86dc51 (diff) | |
download | chef-aaf93801274f437d03dce045a5cc2734f089271b.tar.gz |
Merge pull request #9857 from chef/btm/win10-e2e
private end to end windows 10 pipeline
Diffstat (limited to 'scripts/bk_tests/bk_run_choco.ps1')
-rw-r--r-- | scripts/bk_tests/bk_run_choco.ps1 | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/scripts/bk_tests/bk_run_choco.ps1 b/scripts/bk_tests/bk_run_choco.ps1 index 37a8c2949d..49f9186701 100644 --- a/scripts/bk_tests/bk_run_choco.ps1 +++ b/scripts/bk_tests/bk_run_choco.ps1 @@ -1,26 +1,9 @@ -echo "--- system details" -$Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture' -Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table -AutoSize +$CurrentDirectory = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent +$PrepScript = Join-Path $CurrentDirectory "bk_win_prep.ps1" +Invoke-Expression $PrepScript choco --version -echo "--- update bundler" - -ruby -v -if (-not $?) { throw "Can't run Ruby. Is it installed?" } - -$env:BUNDLER_VERSION=$(findstr bundler omnibus_overrides.rb | %{ $_.split(" ")[3] }) -$env:BUNDLER_VERSION=($env:BUNDLER_VERSION -replace '"', "") -echo $env:BUNDLER_VERSION - -gem install bundler -v $env:BUNDLER_VERSION --force --no-document --quiet -if (-not $?) { throw "Unable to update Bundler" } -bundle --version - -echo "--- bundle install" -bundle install --jobs=3 --retry=3 --without omnibus_package docgen chefstyle -if (-not $?) { throw "Unable to install gem dependencies" } - echo "+++ bundle exec rspec chocolatey_package_spec" bundle exec rspec spec/functional/resource/chocolatey_package_spec.rb if (-not $?) { throw "Chef chocolatey functional tests failing." } |