summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJaymala Sinha <jsinha@chef.io>2019-09-03 14:06:49 -0400
committerJaymala Sinha <jsinha@chef.io>2019-09-05 12:35:29 -0400
commit591cdb62ab7e7a2088c8340132b9da8dd60b6664 (patch)
tree3f043054f1863cc59388b5da1f990aa83d7b47f1 /scripts
parent6a8dbfd0a866ac576d6564d98cdb0a00de68056a (diff)
downloadchef-591cdb62ab7e7a2088c8340132b9da8dd60b6664.tar.gz
Run windows verification in powershell
Signed-off-by: Jaymala Sinha <jsinha@chef.io>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bk_tests/bk_win_functional.ps113
-rw-r--r--scripts/bk_tests/bk_win_integration.ps113
-rw-r--r--scripts/bk_tests/bk_win_unit.ps114
3 files changed, 40 insertions, 0 deletions
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