2020-01-30 20:48:14 +03:00
|
|
|
# We want to run quarantined tests on master as well as on PRs
|
|
|
|
trigger:
|
|
|
|
batch: true
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
2020-01-29 20:18:05 +03:00
|
|
|
|
2020-02-26 22:15:48 +03:00
|
|
|
schedules:
|
|
|
|
- cron: "0 */4 * * *"
|
|
|
|
displayName: Every 4 hours test run
|
2020-01-29 20:18:05 +03:00
|
|
|
branches:
|
|
|
|
include:
|
2020-02-26 22:15:48 +03:00
|
|
|
- master
|
|
|
|
always: true
|
2020-01-29 20:18:05 +03:00
|
|
|
|
2020-02-20 23:46:37 +03:00
|
|
|
variables:
|
|
|
|
- ${{ if ne(variables['System.TeamProject'], 'internal') }}:
|
|
|
|
- name: _UseHelixOpenQueues
|
|
|
|
value: 'true'
|
|
|
|
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
|
2020-02-26 22:15:48 +03:00
|
|
|
- group: DotNet-HelixApi-Access
|
2020-02-20 23:46:37 +03:00
|
|
|
- name: _UseHelixOpenQueues
|
|
|
|
value: 'false'
|
|
|
|
|
2020-01-29 20:18:05 +03:00
|
|
|
jobs:
|
|
|
|
- template: jobs/default-build.yml
|
|
|
|
parameters:
|
2020-06-02 23:02:26 +03:00
|
|
|
jobName: Helix_quarantined_x64
|
|
|
|
jobDisplayName: 'Tests: Helix'
|
2020-01-29 20:18:05 +03:00
|
|
|
agentOs: Windows
|
2020-06-02 23:02:26 +03:00
|
|
|
timeoutInMinutes: 180
|
2020-01-29 20:18:05 +03:00
|
|
|
steps:
|
2020-02-26 23:55:41 +03:00
|
|
|
# Build the shared framework
|
2020-05-30 05:02:03 +03:00
|
|
|
- script: ./build.cmd -ci -nobl -all -pack -arch x64 /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
|
2020-03-07 02:06:58 +03:00
|
|
|
displayName: Build shared fx
|
2020-06-16 01:42:20 +03:00
|
|
|
- script: ./build.cmd -ci -nobl -noBuildRepoTasks -restore -noBuild -noBuildNative -projects src/Grpc/**/*.csproj
|
2020-04-26 04:39:19 +03:00
|
|
|
displayName: Restore interop projects
|
2020-05-30 05:02:03 +03:00
|
|
|
- script: ./build.cmd -ci -nobl -noBuildRepoTasks -noRestore -test -all -noBuildJava -noBuildNative
|
|
|
|
-projects eng\helix\helix.proj /p:RunQuarantinedTests=true /p:IsRequiredCheck=true /p:IsHelixJob=true
|
|
|
|
/p:BuildInteropProjects=true /p:RunTemplateTests=true /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
|
2020-01-29 20:18:05 +03:00
|
|
|
displayName: Run build.cmd helix target
|
2020-06-13 03:34:39 +03:00
|
|
|
continueOnError: true
|
2020-01-29 20:18:05 +03:00
|
|
|
env:
|
2020-02-26 22:15:48 +03:00
|
|
|
HelixApiAccessToken: $(HelixApiAccessToken) # Needed for internal queues
|
2020-01-29 20:18:05 +03:00
|
|
|
SYSTEM_ACCESSTOKEN: $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops
|
|
|
|
artifacts:
|
|
|
|
- name: Helix_logs
|
|
|
|
path: artifacts/log/
|
|
|
|
publishOnError: true
|
2020-06-02 23:02:26 +03:00
|
|
|
|
|
|
|
- template: jobs/default-build.yml
|
|
|
|
parameters:
|
|
|
|
jobName: Windows_Quarantined_x64
|
|
|
|
jobDisplayName: 'Tests: Windows x64'
|
|
|
|
agentOs: Windows
|
|
|
|
timeoutInMinutes: 180
|
|
|
|
isTestingJob: true
|
|
|
|
steps:
|
|
|
|
- powershell: "& ./build.ps1 -CI -nobl -all -pack -NoBuildJava"
|
|
|
|
displayName: Build
|
|
|
|
# The templates part can be removed when the Blazor Templates run on Helix
|
|
|
|
- script: ./src/ProjectTemplates/build.cmd -ci -nobl -pack -NoRestore -NoBuilddeps "/p:RunTemplateTests=true"
|
|
|
|
displayName: Pack Templates
|
|
|
|
- script: ./build.cmd -ci -nobl -test -NoRestore -NoBuild -NoBuilddeps "/p:RunTemplateTests=true /p:RunQuarantinedTests=true /p:SkipHelixReadyTests=true"
|
|
|
|
displayName: Run Quarantined Tests
|
2020-06-13 03:34:39 +03:00
|
|
|
continueOnError: true
|
2020-06-02 23:02:26 +03:00
|
|
|
- task: PublishTestResults@2
|
|
|
|
displayName: Publish Quarantined Test Results
|
|
|
|
inputs:
|
|
|
|
testResultsFormat: 'xUnit'
|
|
|
|
testResultsFiles: '*.xml'
|
|
|
|
searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)/Quarantined'
|
|
|
|
condition: always()
|
|
|
|
artifacts:
|
|
|
|
- name: Windows_Quarantined_Test_Logs
|
|
|
|
path: artifacts/log/
|
|
|
|
publishOnError: true
|
|
|
|
includeForks: true
|
|
|
|
- name: Windows_Quarantined_Test_Results
|
|
|
|
path: artifacts/TestResults/
|
|
|
|
publishOnError: true
|
|
|
|
includeForks: true
|
|
|
|
|
|
|
|
- template: jobs/default-build.yml
|
|
|
|
parameters:
|
|
|
|
jobName: MacOS_Quarantined_Test
|
|
|
|
jobDisplayName: "Tests: macOS 10.14"
|
|
|
|
agentOs: macOS
|
|
|
|
timeoutInMinutes: 180
|
|
|
|
isTestingJob: true
|
|
|
|
steps:
|
|
|
|
- bash: ./build.sh --all --pack --ci --nobl --no-build-java
|
|
|
|
displayName: Build
|
|
|
|
# The templates part can be removed when the Blazor Templates run on Helix
|
|
|
|
- bash: ./src/ProjectTemplates/build.sh --ci --nobl --pack --no-restore --no-build-deps
|
|
|
|
displayName: Pack Templates (for Template tests)
|
|
|
|
- bash: ./build.sh --no-build --ci --nobl --test -p:RunTemplateTests=true -p:RunQuarantinedTests=true -p:SkipHelixReadyTests=true
|
|
|
|
displayName: Run Quarantined Tests
|
2020-06-13 03:34:39 +03:00
|
|
|
continueOnError: true
|
2020-06-02 23:02:26 +03:00
|
|
|
- task: PublishTestResults@2
|
|
|
|
displayName: Publish Quarantined Test Results
|
|
|
|
inputs:
|
|
|
|
testResultsFormat: 'xUnit'
|
|
|
|
testResultsFiles: '*.xml'
|
|
|
|
searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)/Quarantined'
|
|
|
|
condition: always()
|
|
|
|
artifacts:
|
|
|
|
- name: MacOS_Quarantined_Test_Logs
|
|
|
|
path: artifacts/log/
|
|
|
|
publishOnError: true
|
|
|
|
includeForks: true
|
|
|
|
- name: MacOS_Quarantined_Test_Results
|
|
|
|
path: artifacts/TestResults/
|
|
|
|
publishOnError: true
|
|
|
|
includeForks: true
|
|
|
|
|
|
|
|
- template: jobs/default-build.yml
|
|
|
|
parameters:
|
|
|
|
jobName: Linux_Quarantined_Test
|
|
|
|
jobDisplayName: "Tests: Ubuntu 16.04 x64"
|
|
|
|
agentOs: Linux
|
|
|
|
timeoutInMinutes: 180
|
|
|
|
isTestingJob: true
|
|
|
|
useHostedUbuntu: false
|
|
|
|
steps:
|
|
|
|
- bash: ./build.sh --all --pack --ci --nobl --no-build-java
|
|
|
|
displayName: Build
|
|
|
|
# The templates part can be removed when the Blazor Templates run on Helix
|
|
|
|
- bash: ./src/ProjectTemplates/build.sh --ci --nobl --pack --no-restore --no-build-deps
|
|
|
|
displayName: Pack Templates (for Template tests)
|
|
|
|
- bash: ./build.sh --no-build --ci --nobl --test -p:RunTemplateTests=true -p:RunQuarantinedTests=true -p:SkipHelixReadyTests=true
|
|
|
|
displayName: Run Quarantined Tests
|
2020-06-13 03:34:39 +03:00
|
|
|
continueOnError: true
|
2020-06-02 23:02:26 +03:00
|
|
|
- task: PublishTestResults@2
|
|
|
|
displayName: Publish Quarantined Test Results
|
|
|
|
inputs:
|
|
|
|
testResultsFormat: 'xUnit'
|
|
|
|
testResultsFiles: '*.xml'
|
|
|
|
searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)/Quarantined'
|
|
|
|
condition: always()
|
|
|
|
artifacts:
|
|
|
|
- name: Linux_Quarantined_Test_Logs
|
|
|
|
path: artifacts/log/
|
|
|
|
publishOnError: true
|
|
|
|
includeForks: true
|
|
|
|
- name: Linux_Quarantined_Test_Results
|
|
|
|
path: artifacts/TestResults/
|
|
|
|
publishOnError: true
|
2020-06-16 01:42:20 +03:00
|
|
|
includeForks: true
|