
# PowerShell 5.0 build worker
os: WMF 5

# Secret deployment keys
environment:
  GitHubToken:
    secure: g7atusVu/SvLWa4397EhDExCquI2srCWwO2JetLpnQ57V8Pzm27Eq9kj/v8X6wkd
  PSGalleryKey:
    secure: +o4/iom8ZO0TkCMSM0gInMHq/ioFlK7LRh2jJULTBejba3nCjp2EOv94DcTS2r20

# Install required Pester and PSScriptAnalyzer modules
install:
  - ps: Install-PackageProvider NuGet -Force | Out-Null
  - ps: Install-Module Pester -Force
  - ps: Install-Module PSScriptAnalyzer -Force

# Set version to build number
version: '{build}'

# Build configuration
configuration: Release
platform: Any CPU

# Execute compile and build
build:
  verbosity: minimal
after_build:
  - ps: .\Scripts\build.ps1 -AppVeyor -Verbose

# Execute test script
test_script:
  - ps: .\Scripts\test.ps1 -AppVeyor -Verbose

# Execute deploy script
deploy_script:
  - ps: .\Scripts\release.ps1 -AppVeyor -Verbose


# PowerShell 5.0 build worker
os: WMF 5

# Secret deployment keys
environment:
  GitHubToken:
    secure: g7atusVu/SvLWa4397EhDExCquI2srCWwO2JetLpnQ57V8Pzm27Eq9kj/v8X6wkd
  PSGalleryKey:
    secure: +o4/iom8ZO0TkCMSM0gInMHq/ioFlK7LRh2jJULTBejba3nCjp2EOv94DcTS2r20

# Install required Pester and PSScriptAnalyzer modules
install:
  - ps: Install-PackageProvider NuGet -Force | Out-Null
  - ps: Install-Module Pester -Force
  - ps: Install-Module PSScriptAnalyzer -Force

# Set version to build number
version: '{build}'

# Build configuration
configuration: Release
platform: Any CPU

# Execute compile and build
before_build:
  - nuget restore "Sources"
build:
  verbosity: minimal
after_build:
  - ps: .\Scripts\build.ps1 -AppVeyor

# Execute test script
test_script:
  - ps: .\Scripts\test.ps1 -AppVeyor

# Execute deploy script
deploy_script:
  - ps: .\Scripts\release.ps1 -AppVeyor

Remove verbose, add nuget restore
Remove verbose, add nuget restore
