Skip to content

Commit 92f4f78

Browse files
committed
Run windows renderer tests in parallel
1 parent 2fa0f6e commit 92f4f78

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

script/vsts/platforms/templates/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ steps:
2121
ATOM_JASMINE_REPORTER: list
2222
TEST_JUNIT_XML_ROOT: $(Common.TestResultsDirectory)/junit
2323
ATOM_RUN_CORE_TESTS: $(RunCoreTests)
24+
ATOM_RUN_CORE_RENDER_TESTS: $(RunCoreRendererTests)
2425
ATOM_RUN_PACKAGE_TESTS: $(RunPackageTests)
2526
displayName: Run tests
2627
condition: and(succeeded(), ne(variables['Atom.SkipTests'], 'true'))

script/vsts/platforms/windows.yml

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
jobs:
2-
- job: Windows
2+
- job: Windows_Build
33
dependsOn: GetReleaseVersion
44
timeoutInMinutes: 180
55
strategy:
@@ -67,3 +67,52 @@ jobs:
6767
- filename: RELEASES$(FileID)
6868
dir: $(Build.SourcesDirectory)/out
6969
condition: and(succeeded(), eq(variables['IsReleaseBranch'], 'true'))
70+
71+
- job: Windows_RendererTests
72+
dependsOn: Windows_Build
73+
timeoutInMinutes: 180
74+
strategy:
75+
maxParallel: 2
76+
matrix:
77+
x64_Renderer_Test1:
78+
RunCoreMainTests: false
79+
RunCoreRendererTests: 1
80+
buildArch: x64
81+
x64_Renderer_Test2:
82+
RunCoreMainTests: false
83+
RunCoreRendererTests: 2
84+
buildArch: x64
85+
86+
pool:
87+
vmImage: vs2017-win2016
88+
89+
variables:
90+
AppName: $[ dependencies.GetReleaseVersion.outputs['Version.AppName'] ]
91+
ReleaseVersion: $[ dependencies.GetReleaseVersion.outputs['Version.ReleaseVersion'] ]
92+
IsReleaseBranch: $[ dependencies.GetReleaseVersion.outputs['Version.IsReleaseBranch'] ]
93+
IsSignedZipBranch: $[ dependencies.GetReleaseVersion.outputs['Version.IsSignedZipBranch'] ]
94+
95+
steps:
96+
- template: templates/preparation.yml
97+
98+
- template: templates/cache.yml
99+
parameters:
100+
OS: windows
101+
102+
# Downloading the build artifacts
103+
- pwsh: |
104+
if ($env:BUILD_ARCH -eq "x64") {
105+
$env:FileID="-x64"
106+
echo "##vso[task.setvariable variable=FileID]$env:FileID" # Azure syntax
107+
}
108+
env:
109+
BUILD_ARCH: $(buildArch)
110+
displayName: Set FileID based on the arch
111+
112+
- template: templates/download-unzip.yml
113+
parameters:
114+
artifacts:
115+
- atom$(FileID)-windows.zip
116+
117+
# Core renderer tests
118+
- template: templates/test.yml

0 commit comments

Comments
 (0)