mirror of
https://github.com/inspec/inspec
synced 2024-11-14 00:47:10 +00:00
81d5f7d079
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>
12 lines
529 B
PowerShell
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 }
|