This commit is contained in:
Bernie White 2022-03-01 23:20:05 +10:00 коммит произвёл GitHub
Родитель ffca26dc6d
Коммит aa9433aea3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 46 добавлений и 12 удалений

Просмотреть файл

@ -2,12 +2,12 @@
# CI pipeline for PSRule.Rules.Azure
variables:
version: '1.13.0'
version: '1.14.0'
buildConfiguration: 'Release'
disable.coverage.autogenerate: 'true'
imageName: 'ubuntu-20.04'
# Use build number format, i.e. 1.13.0-B2202001
# Use build number format, i.e. 1.14.0-B2202001
name: $(version)-B$(date:yyMM)$(rev:rrr)
trigger:
@ -166,6 +166,7 @@ stages:
displayName: 'PowerShell 7.2 - Windows 2019'
imageName: 'windows-2019'
platform: windows
pwsh: 'true'
- template: jobs/testContainer.yaml
parameters:

Просмотреть файл

@ -2,14 +2,39 @@
# CI job for running VM pipelines
parameters:
name: ''
displayName: ''
buildConfiguration: 'Release'
imageName: ''
coverage: 'false'
publishResults: 'true'
platform: 'linux'
bicepIntegration: 'false'
- name: 'name'
type: 'string'
- name: 'displayName'
type: 'string'
- name: 'buildConfiguration'
type: 'string'
default: 'Release'
- name: 'imageName'
type: 'string'
- name: 'coverage'
type: 'string'
default: 'false'
- name: 'publishResults'
type: 'string'
default: 'true'
- name: 'platform'
type: 'string'
default: 'linux'
- name: 'bicepIntegration'
type: 'string'
default: 'false'
- name: pwsh
type: 'boolean'
default: true
jobs:
- job: ${{ parameters.name }}
@ -23,7 +48,11 @@ jobs:
steps:
# Install pipeline dependencies
- powershell: ./.azure-pipelines/pipeline-deps.ps1
- task: PowerShell@2
inputs:
targetType: inline
script: ./.azure-pipelines/pipeline-deps.ps1
pwsh: ${{ parameters.pwsh }}
displayName: 'Install dependencies'
# Download module
@ -34,7 +63,11 @@ jobs:
path: $(Build.SourcesDirectory)/out/modules/PSRule.Rules.Azure
# Build module
- powershell: Invoke-Build TestModule -Configuration ${{ parameters.buildConfiguration }} -Build $(Build.BuildNumber)
- task: PowerShell@2
inputs:
targetType: inline
script: Invoke-Build TestModule -Configuration ${{ parameters.buildConfiguration }} -Build $(Build.BuildNumber)
pwsh: ${{ parameters.pwsh }}
env:
COVERAGE: ${{ parameters.coverage }}
RUN_BICEP_INTEGRATION: ${{ parameters.bicepIntegration }}