|
| 1 | +# Configure which branches trigger builds |
| 2 | +# We want to run template tests on release/8.0 and later as well as on certain PRs |
| 3 | +trigger: |
| 4 | + batch: true |
| 5 | + branches: |
| 6 | + include: |
| 7 | + - main |
| 8 | + - release/* |
| 9 | + |
| 10 | +# Run PR validation on branches that include Helix tests |
| 11 | +pr: |
| 12 | + autoCancel: true |
| 13 | + branches: |
| 14 | + include: |
| 15 | + - main |
| 16 | + - release/* |
| 17 | + paths: |
| 18 | + include: |
| 19 | + - src/ProjectTemplates/* |
| 20 | + |
| 21 | +variables: |
| 22 | +- name: _UseHelixOpenQueues |
| 23 | + value: ${{ ne(variables['System.TeamProject'], 'internal') }} |
| 24 | +- ${{ if eq(variables['System.TeamProject'], 'internal') }}: |
| 25 | + - group: DotNet-HelixApi-Access |
| 26 | +- template: /eng/common/templates/variables/pool-providers.yml |
| 27 | + |
| 28 | +jobs: |
| 29 | +- template: jobs/default-build.yml |
| 30 | + parameters: |
| 31 | + jobName: Helix_templates_x64 |
| 32 | + jobDisplayName: 'Tests: Helix template tests x64' |
| 33 | + agentOs: Windows |
| 34 | + timeoutInMinutes: 180 |
| 35 | + steps: |
| 36 | + - script: git submodule update --init |
| 37 | + displayName: Update submodules |
| 38 | + # Build the shared framework |
| 39 | + - script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -nobl -all -pack -arch x64 |
| 40 | + /p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log /p:VsTestUseMSBuildOutput=false |
| 41 | + displayName: Build shared fx |
| 42 | + # -noBuildRepoTasks -noBuildNative -noBuild to avoid repeating work done in the previous step. |
| 43 | + - script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -all -noBuildRepoTasks -noBuildNative -noBuild -test |
| 44 | + -projects eng\helix\helix.proj /p:IsHelixPRCheck=true /p:IsHelixJob=true |
| 45 | + /p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log |
| 46 | + /p:VsTestUseMSBuildOutput=false /p:OnlyTestProjectTemplates=true |
| 47 | + displayName: Run build.cmd helix target |
| 48 | + artifacts: |
| 49 | + - name: Helix_logs |
| 50 | + path: artifacts/log/ |
| 51 | + publishOnError: true |
0 commit comments