[release/5.0-preview3] Don't run Code Check in official builds

This commit is contained in:
Doug Bunting 2020-04-03 22:38:52 -07:00
parent 39a24220cf
commit ffa52140db
1 changed files with 23 additions and 22 deletions

View File

@ -92,27 +92,28 @@ stages:
displayName: Build displayName: Build
jobs: jobs:
# Code check # Code check
- template: jobs/default-build.yml - ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
parameters: - template: jobs/default-build.yml
jobName: Code_check parameters:
jobDisplayName: Code check jobName: Code_check
agentOs: Windows jobDisplayName: Code check
steps: agentOs: Windows
- ${{ if ne(variables['System.TeamProject'], 'public') }}: steps:
- task: PowerShell@2 - ${{ if ne(variables['System.TeamProject'], 'public') }}:
displayName: Setup Private Feeds Credentials - task: PowerShell@2
inputs: displayName: Setup Private Feeds Credentials
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1 inputs:
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
env: arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
Token: $(dn-bot-dnceng-artifact-feeds-rw) env:
- powershell: ./eng/scripts/CodeCheck.ps1 -ci $(_InternalRuntimeDownloadArgs) Token: $(dn-bot-dnceng-artifact-feeds-rw)
displayName: Run eng/scripts/CodeCheck.ps1 - powershell: ./eng/scripts/CodeCheck.ps1 -ci $(_InternalRuntimeDownloadArgs)
artifacts: displayName: Run eng/scripts/CodeCheck.ps1
- name: Code_Check_Logs artifacts:
path: artifacts/log/ - name: Code_Check_Logs
publishOnError: true path: artifacts/log/
includeForks: true publishOnError: true
includeForks: true
# Build Windows (x64/x86) # Build Windows (x64/x86)
- template: jobs/default-build.yml - template: jobs/default-build.yml
@ -594,7 +595,7 @@ stages:
parameters: parameters:
condition: ne(variables['SkipTests'], 'true') condition: ne(variables['SkipTests'], 'true')
jobName: MacOS_Test jobName: MacOS_Test
jobDisplayName: "Test: macOS 10.13" jobDisplayName: "Test: macOS 10.14"
agentOs: macOS agentOs: macOS
isTestingJob: true isTestingJob: true
buildArgs: --all --test "/p:RunTemplateTests=false /p:SkipHelixReadyTests=true" $(_InternalRuntimeDownloadArgs) buildArgs: --all --test "/p:RunTemplateTests=false /p:SkipHelixReadyTests=true" $(_InternalRuntimeDownloadArgs)