|
1 | | -jobs: |
2 | | -- job: CookToast |
| 1 | +stages: |
| 2 | +- stage: ThawBread |
| 3 | + displayName: 'Thaw Frozen Bread' |
| 4 | + jobs: |
| 5 | + - job: Srv2019_64bit |
| 6 | + displayName: 'Server 2019 - 64 bit' |
| 7 | + pool: 'AzPS7.1-Preview' |
| 8 | + steps: |
| 9 | + - task: PowerShell@2 |
| 10 | + displayName: 'Run tests (individual .ps1 files) - Windows PowerShell - x64' |
| 11 | + inputs: |
| 12 | + targetType: Inline |
| 13 | + script: ./Azure-Pipelines/build.ps1 -Bootstrap -Test |
| 14 | + env: |
| 15 | + AgentTemp: $(Agent.TempDirectory) |
| 16 | + - task: PowerShell@2 |
| 17 | + displayName: 'Run tests (individual .ps1 files) - PowerShell 7.1 Preview 5 - x64' |
| 18 | + inputs: |
| 19 | + targetType: Inline |
| 20 | + script: ./Azure-Pipelines/build.ps1 -Bootstrap -Test |
| 21 | + pwsh: true |
| 22 | + env: |
| 23 | + AgentTemp: $(Agent.TempDirectory) |
| 24 | + - job: Win10_32bit |
| 25 | + displayName: 'Windows 10 - 32 bit' |
| 26 | + pool: 'LabPS7x86' |
| 27 | + steps: |
| 28 | + - task: PowerShell@2 |
| 29 | + displayName: 'Run tests (individual .ps1 files) - Windows PowerShell - x86' |
| 30 | + inputs: |
| 31 | + targetType: Inline |
| 32 | + script: ./Azure-Pipelines/build.ps1 -Bootstrap -Test |
| 33 | + env: |
| 34 | + AgentTemp: $(Agent.TempDirectory) |
| 35 | + - task: PowerShell@2 |
| 36 | + displayName: 'Run tests (individual .ps1 files) - PowerShell 7.1 Preview 5 - x86' |
| 37 | + inputs: |
| 38 | + targetType: Inline |
| 39 | + script: ./Azure-Pipelines/build.ps1 -Bootstrap -Test |
| 40 | + pwsh: true |
| 41 | + env: |
| 42 | + AgentTemp: $(Agent.TempDirectory) |
| 43 | +- stage: CookToast |
3 | 44 | displayName: 'Cook Toast' |
4 | | - pool: |
5 | | - vmImage: 'windows-2019' |
6 | | - steps: |
7 | | - - task: PowerShell@2 |
8 | | - displayName: 'Run tests (individual .ps1 files)' |
9 | | - inputs: |
10 | | - targetType: Inline |
11 | | - script: ./Azure-Pipelines/build.ps1 -Bootstrap -Test |
| 45 | + dependsOn: 'ThawBread' |
| 46 | + jobs: |
| 47 | + - job: PreBuild |
| 48 | + displayName: 'Pre-Build Tests' |
| 49 | + pool: |
| 50 | + vmImage: 'windows-2019' |
| 51 | + steps: |
| 52 | + - task: PowerShell@2 |
| 53 | + displayName: 'Run tests (individual .ps1 files) - Windows PowerShell' |
| 54 | + inputs: |
| 55 | + targetType: Inline |
| 56 | + script: ./Azure-Pipelines/build.ps1 -Bootstrap -Test |
| 57 | + env: |
| 58 | + AgentTemp: $(Agent.TempDirectory) |
| 59 | + - job: 'BuildRetest' |
| 60 | + displayName: 'Build & Re-test' |
| 61 | + dependsOn: 'PreBuild' |
| 62 | + pool: |
| 63 | + vmImage: 'windows-2019' |
| 64 | + steps: |
| 65 | + - task: PowerShell@2 |
| 66 | + displayName: 'Run tests (individual .ps1 files) - PowerShell Core' |
| 67 | + inputs: |
| 68 | + targetType: Inline |
| 69 | + script: ./Azure-Pipelines/build.ps1 -Bootstrap -Test |
| 70 | + pwsh: true |
| 71 | + env: |
| 72 | + AgentTemp: $(Agent.TempDirectory) |
12 | 73 |
|
13 | | - - task: PowerShell@2 |
14 | | - displayName: 'Compile module' |
15 | | - inputs: |
16 | | - targetType: Inline |
17 | | - script: ./Azure-Pipelines/build.ps1 -Compile |
| 74 | + - task: PowerShell@2 |
| 75 | + displayName: 'Compile module' |
| 76 | + inputs: |
| 77 | + targetType: Inline |
| 78 | + script: ./Azure-Pipelines/build.ps1 -Bootstrap -Compile |
18 | 79 |
|
19 | | - - task: PowerShell@2 |
20 | | - displayName: 'Run tests (compiled .psm1)' |
21 | | - inputs: |
22 | | - targetType: Inline |
23 | | - script: ./Azure-Pipelines/build.ps1 -Test |
| 80 | + - task: PowerShell@2 |
| 81 | + displayName: 'Run tests (compiled .psm1)' |
| 82 | + inputs: |
| 83 | + targetType: Inline |
| 84 | + script: ./Azure-Pipelines/build.ps1 -Test |
| 85 | + env: |
| 86 | + AgentTemp: $(Agent.TempDirectory) |
24 | 87 |
|
25 | | - - task: PublishTestResults@2 |
26 | | - displayName: 'Publish test results' |
27 | | - inputs: |
28 | | - testRunner: NUnit |
29 | | - testResultsFiles: '**/TestResults.xml' |
30 | | - condition: succeededOrFailed() |
| 88 | + - task: PublishTestResults@2 |
| 89 | + displayName: 'Publish test results' |
| 90 | + inputs: |
| 91 | + testRunner: NUnit |
| 92 | + testResultsFiles: '**/TestResults.xml' |
| 93 | + condition: succeededOrFailed() |
| 94 | + - task: PublishCodeCoverageResults@1 |
| 95 | + displayName: 'Publish code coverage results' |
| 96 | + inputs: |
| 97 | + summaryFileLocation: $(Agent.TempDirectory)/CoverageResults.xml |
| 98 | + pathToSources: $(Agent.TempDirectory) |
| 99 | + condition: succeededOrFailed() |
31 | 100 |
|
32 | | - - task: Bash@3 |
33 | | - displayName: 'Upload coverage to Codecov' |
34 | | - inputs: |
35 | | - targetType: 'filePath' # Optional. Options: filePath, inline |
36 | | - filePath: ./codecov.sh |
37 | | - arguments: -f coverage.json -t $(CODECOV_TOKEN) |
38 | | - #script: '# Write your commands here# Use the environment variables input below to pass secret variables to this script' # Required when targetType == Inline |
39 | | - #workingDirectory: # Optional |
40 | | - #failOnStderr: false # Optional |
| 101 | + - task: Bash@3 |
| 102 | + displayName: 'Upload coverage to Codecov' |
| 103 | + inputs: |
| 104 | + targetType: 'filePath' # Optional. Options: filePath, inline |
| 105 | + filePath: ./codecov.sh |
| 106 | + arguments: -f coverage.json -t $(CODECOV_TOKEN) |
| 107 | + #script: '# Write your commands here# Use the environment variables input below to pass secret variables to this script' # Required when targetType == Inline |
| 108 | + #workingDirectory: # Optional |
| 109 | + #failOnStderr: false # Optional |
41 | 110 |
|
42 | | - - task: PublishPipelineArtifact@0 |
43 | | - displayName: 'Publish compiled module artifact' |
44 | | - inputs: |
45 | | - artifactName: 'BurntToast' |
46 | | - targetPath: ./BurntToast |
47 | | - condition: succeededOrFailed() |
| 111 | + - task: PublishPipelineArtifact@0 |
| 112 | + displayName: 'Publish compiled module artifact' |
| 113 | + inputs: |
| 114 | + artifactName: 'BurntToast' |
| 115 | + targetPath: ./BurntToast |
| 116 | + condition: succeededOrFailed() |
48 | 117 |
|
49 | | - - task: PublishPipelineArtifact@0 |
50 | | - displayName: 'Publish Pipelines scripts as artifact' |
51 | | - inputs: |
52 | | - artifactName: 'PipelinesScripts' |
53 | | - targetPath: ./Azure-Pipelines |
54 | | - condition: succeededOrFailed() |
| 118 | + - task: PublishPipelineArtifact@0 |
| 119 | + displayName: 'Publish Pipelines scripts as artifact' |
| 120 | + inputs: |
| 121 | + artifactName: 'PipelinesScripts' |
| 122 | + targetPath: ./Azure-Pipelines |
| 123 | + condition: succeededOrFailed() |
0 commit comments