inspec/omnibus/omnibus-test.ps1
Tom Duffield 81d5f7d079
Remove pipeline-specific logic from test scripts
This logic has been moved into the Omnibus Buildkite Plugin.
These scripts can now be used outside of the Buildkite pipelines.

Signed-off-by: Tom Duffield <github@tomduffield.com>
2021-04-23 16:06:05 -05:00

12 lines
529 B
PowerShell

# Stop script execution when a non-terminating error occurs
$ErrorActionPreference = "Stop"
# reload Env:PATH to ensure it gets any changes that the install made (e.g. C:\opscode\inspec\bin\ )
$Env:PATH = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")
$Env:Path = "C:\opscode\inspec\bin;C:\opscode\inspec\embedded\bin;$Env:PATH"
Write-Host "+++ Testing $Plan"
Set-Location test/artifact
rake
If ($lastexitcode -ne 0) { Exit $lastexitcode }