-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
115 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
stages: | ||
displayName: 'Thaw Frozen Bread' | ||
jobs: | ||
- job: Srv2019_64bit | ||
displayName: 'Server 2019 - 64 bit' | ||
pool: 'AzPS7.1-Preview' | ||
steps: | ||
- task: PowerShell@2 | ||
displayName: 'Run tests (individual .ps1 files) - Windows PowerShell - x64' | ||
inputs: | ||
targetType: Inline | ||
script: ./Azure-Pipelines/build.ps1 -Bootstrap -Test | ||
env: | ||
AgentTemp: $(Agent.TempDirectory) | ||
- task: PowerShell@2 | ||
displayName: 'Run tests (individual .ps1 files) - PowerShell 7.1 Preview 5 - x64' | ||
inputs: | ||
targetType: Inline | ||
script: ./Azure-Pipelines/build.ps1 -Bootstrap -Test | ||
pwsh: true | ||
env: | ||
AgentTemp: $(Agent.TempDirectory) | ||
- job: Win10_32bit | ||
displayName: 'Windows 10 - 32 bit' | ||
pool: 'LabPS7x86' | ||
steps: | ||
- task: PowerShell@2 | ||
displayName: 'Run tests (individual .ps1 files) - Windows PowerShell - x86' | ||
inputs: | ||
targetType: Inline | ||
script: ./Azure-Pipelines/build.ps1 -Bootstrap -Test | ||
env: | ||
AgentTemp: $(Agent.TempDirectory) | ||
- task: PowerShell@2 | ||
displayName: 'Run tests (individual .ps1 files) - PowerShell 7.1 Preview 5 - x86' | ||
inputs: | ||
targetType: Inline | ||
script: ./Azure-Pipelines/build.ps1 -Bootstrap -Test | ||
pwsh: true | ||
env: | ||
AgentTemp: $(Agent.TempDirectory) | ||
- stage: Build | ||
displayName: 'Run Build' | ||
jobs: | ||
- job: 'Build' | ||
displayName: 'Build & test' | ||
pool: | ||
vmImage: 'windows-2019' | ||
steps: | ||
- task: PowerShell@2 | ||
displayName: 'Run tests' | ||
inputs: | ||
targetType: Inline | ||
script: ./build/build.ps1 -Bootstrap -Test -CodeCoverage | ||
env: | ||
AgentTemp: $(Agent.TempDirectory) | ||
|
||
- task: PublishTestResults@2 | ||
displayName: 'Publish test results' | ||
inputs: | ||
testRunner: NUnit | ||
testResultsFiles: '**/TestResults.xml' | ||
condition: succeededOrFailed() | ||
- task: PublishCodeCoverageResults@1 | ||
displayName: 'Publish code coverage results' | ||
inputs: | ||
summaryFileLocation: $(Agent.TempDirectory)/CoverageResults.xml | ||
pathToSources: $(Agent.TempDirectory) | ||
condition: succeededOrFailed() | ||
|
||
- task: Bash@3 | ||
displayName: 'Upload coverage to Codecov' | ||
inputs: | ||
targetType: 'filePath' # Optional. Options: filePath, inline | ||
filePath: ./codecov.sh | ||
arguments: -f coverage.json -t $(CODECOV_TOKEN) | ||
#script: '# Write your commands here# Use the environment variables input below to pass secret variables to this script' # Required when targetType == Inline | ||
#workingDirectory: # Optional | ||
#failOnStderr: false # Optional | ||
|
||
- task: PublishPipelineArtifact@0 | ||
displayName: 'Publish compiled module artifact' | ||
inputs: | ||
artifactName: 'xSConfig' | ||
targetPath: ./src | ||
condition: succeededOrFailed() | ||
|
||
- task: PublishPipelineArtifact@0 | ||
displayName: 'Publish Pipelines scripts as artifact' | ||
inputs: | ||
artifactName: 'PipelinesScripts' | ||
targetPath: ./build | ||
condition: succeededOrFailed() |