Commit 7bf3af93 authored by Stefan Scherer's avatar Stefan Scherer

Export appveyor.yml

parent 1ccd0427
version: 1.0.{build}
image: Visual Studio 2017
install:
- choco feature disable --name showDownloadProgress
- choco install -y packer
- ps: Install-WindowsFeature Hyper-V-PowerShell
test_script:
- ps: .\test.ps1
$ErrorActionPreference = 'Stop'
"dummy" | Out-File path-to.vmx
$env:PACKER_AZURE_AD_TENANT_ID="dummy"
$env:PACKER_AZURE_SUBSCRIPTION_ID="dummy"
$env:PACKER_AZURE_OBJECT_ID="dummy"
$env:PACKER_AZURE_APP_ID="dummy"
$env:PACKER_AZURE_CLIENT_SECRET="dummy"
$env:PACKER_AZURE_RESOURCE_GROUP="dummy"
$env:PACKER_AZURE_STORAGE_ACCOUNT="dummy"
$files = @(Get-ChildItem *.json)
foreach ($file in $files) {
Write-Host "`n`nValidate $file"
packer validate $file
packer.exe validate $file
if (-not $?)
{
throw "Packer validate found errors in $file!"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment