fbbca53f4c
Closes #6944 Following PR #6945, further, reduce the total build time (without any disadvantages) by around 5 minutes by making sure there is a more even split between the 2 build jobs (the 2nd build job used to be much shorter). Therefore this PR moves also the xUnit and Pester-Admin tests into the 2nd build job. If it is a daily/feature test commit, then the feature tests will also happen (only) in the 2nd build job. Because both jobs now run tests, the failfast option was removed. The final question from my side is whether running tests in 2 build jobs is OK for the daily build, which uploads code coverage results? The time to wait for the AppVeyor build results is now 15 +/- 2 minutes, which is a huge improvement to what used to be around 28 minutes before the build matrix was introduced.
36 lines
1,003 B
YAML
36 lines
1,003 B
YAML
# version is set in tools\appveyor.psm1 - Invoke-AppVeyorInstall
|
|
environment:
|
|
POWERSHELL_TELEMETRY_OPTOUT: 1
|
|
# Avoid expensive initialization of dotnet cli, see: http://donovanbrown.com/post/Stop-wasting-time-during-NET-Core-builds
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
|
matrix:
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
Purpose: UnelevatedPesterTests
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
Purpose: ElevatedPesterTests_xUnit_Packaging
|
|
|
|
# cache version - netcoreapp.2.1-sdk.2.1.300
|
|
cache:
|
|
- '%HOMEDRIVE%%HOMEPATH%\.nuget\packages -> appveyor.yml'
|
|
|
|
nuget:
|
|
project_feed: true
|
|
|
|
install:
|
|
- git submodule update --init
|
|
- ps: Import-Module .\tools\Appveyor.psm1
|
|
- ps: Invoke-AppveyorInstall
|
|
|
|
build_script:
|
|
- ps: Invoke-AppveyorBuild
|
|
|
|
test_script:
|
|
- ps: Invoke-AppveyorTest -Purpose $env:Purpose
|
|
|
|
after_test:
|
|
- ps: Invoke-AppVeyorAfterTest
|
|
|
|
# Packaging
|
|
on_finish:
|
|
- ps: if ($env:Purpose -eq 'ElevatedPesterTests_xUnit_Packaging'){ Invoke-AppveyorFinish }
|