PowerShell-FeatureFlags/azure-pipelines.yml

66 строки
1.2 KiB
YAML

trigger:
branches:
include:
- master
paths:
exclude:
- README.md
- examples/*
- .gitignore
jobs:
- job: PowerShellCore
strategy:
matrix:
linux:
imageName: 'ubuntu-16.04'
mac:
imageName: 'macos-10.15'
windows:
imageName: 'vs2017-win2016'
pool:
vmImage: $(imageName)
steps:
- task: PowerShell@2
displayName: Restore
inputs:
filePath: 'tools/restore.ps1'
pwsh: true
- task: PowerShell@2
displayName: Test
inputs:
filePath: 'tools/run-tests.ps1'
pwsh: true
- task: PublishTestResults@2
inputs:
testResultsFormat: "NUnit"
testResultsFiles: "test/results.xml"
- job: WindowsPowershell
pool:
vmImage: 'vs2017-win2016'
steps:
- task: PowerShell@2
displayName: Restore
inputs:
filePath: 'tools/restore.ps1'
- task: PowerShell@2
displayName: Test
inputs:
filePath: 'tools/run-tests.ps1'
- task: PublishTestResults@2
inputs:
testResultsFormat: "NUnit"
testResultsFiles: "test/results.xml"
- task: PowerShell@2
displayName: TestManifest
inputs:
targetType: inline
script: 'Test-ModuleManifest -Path ./FeatureFlags.psd1'