mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Run windows renderer tests in parallel
This commit is contained in:
@@ -21,6 +21,7 @@ steps:
|
||||
ATOM_JASMINE_REPORTER: list
|
||||
TEST_JUNIT_XML_ROOT: $(Common.TestResultsDirectory)/junit
|
||||
ATOM_RUN_CORE_TESTS: $(RunCoreTests)
|
||||
ATOM_RUN_CORE_RENDER_TESTS: $(RunCoreRendererTests)
|
||||
ATOM_RUN_PACKAGE_TESTS: $(RunPackageTests)
|
||||
displayName: Run tests
|
||||
condition: and(succeeded(), ne(variables['Atom.SkipTests'], 'true'))
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
jobs:
|
||||
- job: Windows
|
||||
- job: Windows_Build
|
||||
dependsOn: GetReleaseVersion
|
||||
timeoutInMinutes: 180
|
||||
strategy:
|
||||
@@ -68,3 +68,54 @@ jobs:
|
||||
- fileName: RELEASES$(FileID)
|
||||
fileDir: $(Build.SourcesDirectory)/out
|
||||
condition: and(succeeded(), eq(variables['IsReleaseBranch'], 'true'))
|
||||
|
||||
- job: Windows_RendererTests
|
||||
dependsOn: Windows_Build
|
||||
timeoutInMinutes: 180
|
||||
strategy:
|
||||
maxParallel: 2
|
||||
matrix:
|
||||
x64_Renderer_Test1:
|
||||
RunCoreMainTests: false
|
||||
RunCoreRendererTests: 1
|
||||
buildArch: x64
|
||||
x64_Renderer_Test2:
|
||||
RunCoreMainTests: false
|
||||
RunCoreRendererTests: 2
|
||||
buildArch: x64
|
||||
|
||||
pool:
|
||||
vmImage: vs2017-win2016
|
||||
|
||||
variables:
|
||||
AppName: $[ dependencies.GetReleaseVersion.outputs['Version.AppName'] ]
|
||||
ReleaseVersion: $[ dependencies.GetReleaseVersion.outputs['Version.ReleaseVersion'] ]
|
||||
IsReleaseBranch: $[ dependencies.GetReleaseVersion.outputs['Version.IsReleaseBranch'] ]
|
||||
IsSignedZipBranch: $[ dependencies.GetReleaseVersion.outputs['Version.IsSignedZipBranch'] ]
|
||||
|
||||
steps:
|
||||
- template: templates/preparation.yml
|
||||
|
||||
- template: templates/cache.yml
|
||||
parameters:
|
||||
OS: windows
|
||||
|
||||
# Downloading the build artifacts
|
||||
- pwsh: |
|
||||
if ($env:BUILD_ARCH -eq "x64") {
|
||||
$env:FileID="-x64"
|
||||
} else {
|
||||
$env:FileID=""
|
||||
}
|
||||
echo "##vso[task.setvariable variable=FileID]$env:FileID" # Azure syntax
|
||||
env:
|
||||
BUILD_ARCH: $(BUILD_ARCH)
|
||||
displayName: Set FileID based on the arch
|
||||
|
||||
- template: templates/download-unzip.yml
|
||||
parameters:
|
||||
artifacts:
|
||||
- atom$(FileID)-windows.zip
|
||||
|
||||
# Core renderer tests
|
||||
- template: templates/test.yml
|
||||
|
||||
Reference in New Issue
Block a user