-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
13 changed files
with
263 additions
and
259 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 |
---|---|---|
@@ -1,30 +1,25 @@ | ||
name: PR-$(System.PullRequest.PullRequestNumber)-$(Date:yyyyMMdd)$(Rev:.rr) | ||
|
||
trigger: | ||
# Batch merge builds together while a merge build is running | ||
batch: true | ||
branches: | ||
include: | ||
- master | ||
|
||
pr: | ||
branches: | ||
include: | ||
- master | ||
- master | ||
|
||
resources: | ||
repositories: | ||
- repository: ComplianceRepo | ||
type: github | ||
endpoint: ComplianceGHRepo | ||
endpoint: GitHub | ||
name: PowerShell/compliance | ||
|
||
jobs: | ||
- job: Compliance_Job | ||
- job: Compliance | ||
pool: | ||
vmImage: windows-latest | ||
steps: | ||
- checkout: self | ||
clean: true | ||
- checkout: ComplianceRepo | ||
clean: true | ||
- template: ci-compliance.yml@ComplianceRepo |
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 |
---|---|---|
@@ -1,25 +1,67 @@ | ||
parameters: | ||
pwsh: true | ||
- name: pwsh | ||
type: boolean | ||
default: true | ||
|
||
steps: | ||
- pwsh: Write-Host "##vso[build.updatebuildnumber]$env:BUILD_SOURCEBRANCHNAME-$env:BUILD_SOURCEVERSION-$((get-date).ToString("yyyyMMddhhmmss"))" | ||
displayName: Set Build Name for Non-PR | ||
condition: ne(variables['Build.Reason'], 'PullRequest') | ||
- task: PowerShell@2 | ||
inputs: | ||
filePath: scripts/azurePipelinesBuild.ps1 | ||
pwsh: ${{ parameters.pwsh }} | ||
- task: PublishTestResults@2 | ||
inputs: | ||
testRunner: VSTest | ||
testResultsFiles: '**/*.trx' | ||
condition: succeededOrFailed() | ||
- task: PublishTestResults@2 | ||
inputs: | ||
testRunner: NUnit | ||
testResultsFiles: '**/TestResults.xml' | ||
condition: succeededOrFailed() | ||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
ArtifactName: GraphicalTools | ||
PathtoPublish: '$(Build.ArtifactStagingDirectory)' | ||
- task: PowerShell@2 | ||
displayName: PowerShell version | ||
inputs: | ||
targetType: inline | ||
script: $PSVersionTable | ||
pwsh: ${{ parameters.pwsh }} | ||
|
||
- task: UseDotNet@2 | ||
displayName: Install .NET 6.0.x SDK | ||
inputs: | ||
packageType: sdk | ||
version: 6.0.x | ||
performMultiLevelLookup: true | ||
|
||
- task: PowerShell@2 | ||
displayName: Build and test | ||
inputs: | ||
filePath: tools/azurePipelinesBuild.ps1 | ||
pwsh: ${{ parameters.pwsh }} | ||
|
||
- task: PublishTestResults@2 | ||
displayName: Publish VSTest results | ||
inputs: | ||
testRunner: VSTest | ||
testResultsFiles: '**/*.trx' | ||
condition: succeededOrFailed() | ||
|
||
- task: PublishTestResults@2 | ||
displayName: Publish NUnit results | ||
inputs: | ||
testRunner: NUnit | ||
testResultsFiles: '**/TestResults.xml' | ||
condition: succeededOrFailed() | ||
|
||
# NOTE: We zip the artifacts because they're ~20 MB compressed, but ~300 MB raw, | ||
# and we have limited pipeline artifact storage space. | ||
- task: ArchiveFiles@2 | ||
displayName: Zip build output | ||
inputs: | ||
rootFolderOrFile: module | ||
includeRootFolder: false | ||
archiveType: zip | ||
archiveFile: GraphicalTools-Build.zip | ||
verbose: true | ||
|
||
- publish: GraphicalTools-Build.zip | ||
artifact: GraphicalTools-Build-$(System.JobId) | ||
displayName: Publish build output archive | ||
|
||
- task: ArchiveFiles@2 | ||
displayName: Zip sources with `project.assets.json` | ||
inputs: | ||
rootFolderOrFile: src | ||
includeRootFolder: false | ||
archiveType: zip | ||
archiveFile: GraphicalTools-Sources.zip | ||
verbose: true | ||
|
||
- publish: GraphicalTools-Sources.zip | ||
artifact: GraphicalTools-Sources-$(System.JobId) | ||
displayName: Publish sources archive |
Oops, something went wrong.