|
| 1 | +name: PR-$(System.PullRequest.PullRequestNumber)-$(Date:yyyyMMdd)$(Rev:.rr) |
| 2 | +trigger: |
| 3 | + # Batch merge builds together while a merge build is running |
| 4 | + batch: true |
| 5 | + branches: |
| 6 | + include: |
| 7 | + - master |
| 8 | + - release* |
| 9 | + paths: |
| 10 | + include: |
| 11 | + - '*' |
| 12 | + exclude: |
| 13 | + - /tools/releaseBuild/**/* |
| 14 | + - /.vsts-ci/misc-analysis.yml |
| 15 | + - /.github/ISSUE_TEMPLATE/* |
| 16 | +pr: |
| 17 | + branches: |
| 18 | + include: |
| 19 | + - master |
| 20 | + - release* |
| 21 | + paths: |
| 22 | + include: |
| 23 | + - '*' |
| 24 | + exclude: |
| 25 | + - /tools/releaseBuild/**/* |
| 26 | + - /.vsts-ci/misc-analysis.yml |
| 27 | + - /.github/ISSUE_TEMPLATE/* |
| 28 | + |
| 29 | +variables: |
| 30 | + GIT_CONFIG_PARAMETERS: "'core.autocrlf=false'" |
| 31 | + DOTNET_CLI_TELEMETRY_OPTOUT: 1 |
| 32 | + POWERSHELL_TELEMETRY_OPTOUT: 1 |
| 33 | + # Avoid expensive initialization of dotnet cli, see: https://donovanbrown.com/post/Stop-wasting-time-during-NET-Core-builds |
| 34 | + DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 |
| 35 | + |
| 36 | +resources: |
| 37 | +- repo: self |
| 38 | + clean: true |
| 39 | + |
| 40 | +jobs: |
| 41 | +- template: templates/ci-build.yml |
| 42 | + |
| 43 | +- template: templates/windows-test.yml |
| 44 | + parameters: |
| 45 | + purpose: UnelevatedPesterTests |
| 46 | + tagSet: CI |
| 47 | + parentJobs: |
| 48 | + - win_build |
| 49 | + |
| 50 | +- template: templates/windows-test.yml |
| 51 | + parameters: |
| 52 | + purpose: ElevatedPesterTests |
| 53 | + tagSet: CI |
| 54 | + parentJobs: |
| 55 | + - win_build |
| 56 | + |
| 57 | +- template: templates/windows-test.yml |
| 58 | + parameters: |
| 59 | + purpose: UnelevatedPesterTests |
| 60 | + tagSet: Others |
| 61 | + parentJobs: |
| 62 | + - win_build |
| 63 | + |
| 64 | +- template: templates/windows-test.yml |
| 65 | + parameters: |
| 66 | + purpose: ElevatedPesterTests |
| 67 | + tagSet: Others |
| 68 | + parentJobs: |
| 69 | + - win_build |
| 70 | + |
| 71 | +- template: templates/windows-packaging.yml |
| 72 | + parameters: |
| 73 | + dependsOn: |
| 74 | + - win_test_UnelevatedPesterTests_CI |
| 75 | + - win_test_ElevatedPesterTests_CI |
| 76 | + - win_test_UnelevatedPesterTests_Others |
| 77 | + - win_test_ElevatedPesterTests_Others |
| 78 | + - verify_xunit |
| 79 | + |
| 80 | +- template: templates/verify-xunit.yml |
| 81 | + parameters: |
| 82 | + pool: 'Hosted VS2017' |
| 83 | + dependsOn: win_build |
0 commit comments