diff options
-rw-r--r-- | .expeditor/verify.pipeline.yml | 16 | ||||
-rw-r--r-- | scripts/bk_tests/bk_win_functional.ps1 | 13 | ||||
-rw-r--r-- | scripts/bk_tests/bk_win_integration.ps1 | 13 | ||||
-rw-r--r-- | scripts/bk_tests/bk_win_unit.ps1 | 14 |
4 files changed, 49 insertions, 7 deletions
diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 3e0f3cff86..b3672eb360 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -194,37 +194,39 @@ steps: - label: "Integration Specs Windows :ruby: 2.6" commands: - - bundle install --jobs=3 --retry=3 --without omnibus_package docgen - - bundle exec rake spec:integration + - /workdir/scripts/bk_tests/bk_win_integration.ps1 expeditor: executor: docker: host_os: windows environment: + - FORCE_FFI_YAJL=ext - CHEF_LICENSE=accept-no-persist + shell: ["powershell", "-Command"] - label: "Functional Specs Windows :ruby: 2.6" commands: - - bundle install --jobs=3 --retry=3 --without omnibus_package docgen ruby_prof - - bundle exec rake spec:functional + - /workdir/scripts/bk_tests/bk_win_functional.ps1 expeditor: executor: docker: host_os: windows environment: + - FORCE_FFI_YAJL=ext - CHEF_LICENSE=accept-no-persist + shell: ["powershell", "-Command"] - label: "Unit Specs Windows :ruby: 2.6" commands: - - bundle install --jobs=3 --retry=3 --without omnibus_package docgen ruby_prof - - bundle exec rake spec:unit - - bundle exec rake component_specs + - /workdir/scripts/bk_tests/bk_win_unit.ps1 expeditor: executor: docker: host_os: windows environment: + - FORCE_FFI_YAJL=ext - CHEF_LICENSE=accept-no-persist + shell: ["powershell", "-Command"] - label: "Chefstyle :ruby: 2.6" commands: diff --git a/scripts/bk_tests/bk_win_functional.ps1 b/scripts/bk_tests/bk_win_functional.ps1 new file mode 100644 index 0000000000..06695ccd97 --- /dev/null +++ b/scripts/bk_tests/bk_win_functional.ps1 @@ -0,0 +1,13 @@ +echo "--- system details" +$Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture' +Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table -AutoSize +ruby -v +bundle --version + +echo "--- bundle install" +bundle install --jobs=3 --retry=3 --without omnibus_package docgen chefstyle + +echo "+++ bundle exec rake" +bundle exec rake spec:functional + +exit $LASTEXITCODE
\ No newline at end of file diff --git a/scripts/bk_tests/bk_win_integration.ps1 b/scripts/bk_tests/bk_win_integration.ps1 new file mode 100644 index 0000000000..c6cdd5e2b1 --- /dev/null +++ b/scripts/bk_tests/bk_win_integration.ps1 @@ -0,0 +1,13 @@ +echo "--- system details" +$Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture' +Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table -AutoSize +ruby -v +bundle --version + +echo "--- bundle install" +bundle install --jobs=3 --retry=3 --without omnibus_package docgen chefstyle + +echo "+++ bundle exec rake" +bundle exec rake spec:integration + +exit $LASTEXITCODE
\ No newline at end of file diff --git a/scripts/bk_tests/bk_win_unit.ps1 b/scripts/bk_tests/bk_win_unit.ps1 new file mode 100644 index 0000000000..48ad3fe283 --- /dev/null +++ b/scripts/bk_tests/bk_win_unit.ps1 @@ -0,0 +1,14 @@ +echo "--- system details" +$Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture' +Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table -AutoSize +ruby -v +bundle --version + +echo "--- bundle install" +bundle install --jobs=3 --retry=3 --without omnibus_package docgen chefstyle + +echo "+++ bundle exec rake" +bundle exec rake spec:unit +bundle exec rake component_specs + +exit $LASTEXITCODE
\ No newline at end of file |