Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update YAML formatting #5318

Merged
merged 2 commits into from
Mar 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .azure-pipelines/.prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
singleQuote: true
214 changes: 107 additions & 107 deletions .azure-pipelines/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,115 +3,115 @@
# AzConfigConnectionString - The connection string used for testing the AzConfig service. This is set in the pipeline web ui as it needs different values for public vs internal.

trigger:
- master
- master

variables:
DotNetCoreVersion: '2.1.503'

jobs:
- job: 'Build'

pool:
vmImage: 'vs2017-win2016'

steps:
- task: DotNetCoreInstaller@0
displayName: 'Use .NET Core sdk $(DotNetCoreVersion)'
inputs:
version: '$(DotNetCoreVersion)'

- task: DotNetCoreCLI@2
displayName: 'Build and Package'
inputs:
command: pack
packagesToPack: '$(ProjectFile)'
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_MULTILEVEL_LOOKUP: 0

- task: PublishBuildArtifacts@1
condition: succeededOrFailed()
displayName: 'Publish Artifacts'
inputs:
ArtifactName: packages

- job: 'Analyze'

dependsOn:
'Build'

pool:
vmImage: 'vs2017-win2016'

steps:
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts'
condition: and(succeededOrFailed(), ne(variables['Build.Reason'],'PullRequest'))
inputs:
artifactName: packages
downloadPath: $(System.DefaultWorkingDirectory)

- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
displayName: 'Component Detection'
# ComponentGovernance is currently unable to run on pull requests of public projects. Running on
# scheduled builds should be good enough.
condition: and(succeededOrFailed(), ne(variables['Build.Reason'],'PullRequest'))

- job: 'Test'

strategy:
matrix:
Linux:
OSName: 'Linux'
OSVmImage: 'ubuntu-16.04'
Windows:
OSName: 'Windows'
OSVmImage: 'vs2017-win2016'
MacOs:
OSName: 'MacOS'
OSVmImage: 'macOS-10.13'

pool:
vmImage: '$(OSVmImage)'

steps:
- task: DotNetCoreInstaller@0
displayName: 'Use .NET Core sdk $(DotNetCoreVersion)'
inputs:
version: '$(DotNetCoreVersion)'

- task: DotNetCoreCLI@2
displayName: 'Build & Test (no live tests)'
condition: eq(variables['System.TeamProject'], 'public')
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_MULTILEVEL_LOOKUP: 0
inputs:
command: test
projects: '$(ProjectFile)'
arguments: --filter TestCategory!=Live --logger trx
publishTestResults: false

- task: DotNetCoreCLI@2
displayName: 'Build & Test (with live tests)'
condition: ne(variables['System.TeamProject'], 'public')
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_MULTILEVEL_LOOKUP: 0
AZ_CONFIG_CONNECTION: $(AzConfigConnectionString)
inputs:
command: test
projects: '$(ProjectFile)'
arguments: --logger trx
publishTestResults: false

- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/*.trx'
testRunTitle: '$(OSName) DotNet $(DotNetCoreVersion)'
testResultsFormat: 'VSTest'
mergeTestResults: true
- job: 'Build'

pool:
vmImage: 'vs2017-win2016'

steps:
- task: DotNetCoreInstaller@0
displayName: 'Use .NET Core sdk $(DotNetCoreVersion)'
inputs:
version: '$(DotNetCoreVersion)'

- task: DotNetCoreCLI@2
displayName: 'Build and Package'
inputs:
command: pack
packagesToPack: '$(ProjectFile)'
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_MULTILEVEL_LOOKUP: 0

- task: PublishBuildArtifacts@1
condition: succeededOrFailed()
displayName: 'Publish Artifacts'
inputs:
ArtifactName: packages

- job: 'Analyze'

dependsOn:
- 'Build'

pool:
vmImage: 'vs2017-win2016'

steps:
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts'
condition: and(succeededOrFailed(), ne(variables['Build.Reason'],'PullRequest'))
inputs:
artifactName: packages
downloadPath: $(System.DefaultWorkingDirectory)

- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
displayName: 'Component Detection'
# ComponentGovernance is currently unable to run on pull requests of public projects. Running on
# scheduled builds should be good enough.
condition: and(succeededOrFailed(), ne(variables['Build.Reason'],'PullRequest'))

- job: 'Test'

strategy:
matrix:
Linux:
OSName: 'Linux'
OSVmImage: 'ubuntu-16.04'
Windows:
OSName: 'Windows'
OSVmImage: 'vs2017-win2016'
MacOs:
OSName: 'MacOS'
OSVmImage: 'macOS-10.13'

pool:
vmImage: '$(OSVmImage)'

steps:
- task: DotNetCoreInstaller@0
displayName: 'Use .NET Core sdk $(DotNetCoreVersion)'
inputs:
version: '$(DotNetCoreVersion)'

- task: DotNetCoreCLI@2
displayName: 'Build & Test (no live tests)'
condition: eq(variables['System.TeamProject'], 'public')
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_MULTILEVEL_LOOKUP: 0
inputs:
command: test
projects: '$(ProjectFile)'
arguments: --filter TestCategory!=Live --logger trx
publishTestResults: false

- task: DotNetCoreCLI@2
displayName: 'Build & Test (with live tests)'
condition: ne(variables['System.TeamProject'], 'public')
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_MULTILEVEL_LOOKUP: 0
AZ_CONFIG_CONNECTION: $(AzConfigConnectionString)
inputs:
command: test
projects: '$(ProjectFile)'
arguments: --logger trx
publishTestResults: false

- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/*.trx'
testRunTitle: '$(OSName) DotNet $(DotNetCoreVersion)'
testResultsFormat: 'VSTest'
mergeTestResults: true