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:
|
|
|
|
jobName: Helix_quarantine_x64
|
|
|
|
jobDisplayName: 'Tests: Helix Quarantine x64'
|
|
|
|
agentOs: Windows
|
|
|
|
timeoutInMinutes: 240
|
|
|
|
steps:
|
2020-02-26 23:55:41 +03:00
|
|
|
# Build the shared framework
|
|
|
|
- script: ./build.cmd -ci -all -pack -arch x64 -buildNative /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log /bl:artifacts/log/helix.build.x64.binlog
|
2020-03-07 02:06:58 +03:00
|
|
|
displayName: Build shared fx
|
2020-03-23 23:29:50 +03:00
|
|
|
- script: .\restore.cmd -ci /p:BuildInteropProjects=true
|
2020-01-29 20:18:05 +03:00
|
|
|
displayName: Restore
|
2020-03-23 23:29:50 +03:00
|
|
|
- script: .\build.cmd -ci -NoRestore -test -noBuildJava -projects eng\helix\helix.proj /p:RunQuarantinedTests=true /p:IsRequiredCheck=true /p:IsHelixJob=true /p:BuildAllProjects=true /p:BuildInteropProjects=true /p:BuildNative=true /p:RunTemplateTests=true /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log -bl
|
2020-01-29 20:18:05 +03:00
|
|
|
displayName: Run build.cmd helix target
|
|
|
|
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
|