20
20
IsSignedZipBranch : $[ dependencies.GetReleaseVersion.outputs['Version.IsSignedZipBranch'] ]
21
21
22
22
steps :
23
+ - script : |
24
+ IF [%BUILD_ARCH%]==[x64] (
25
+ SET RunCommand=
26
+ ) ELSE (
27
+ SET RunCommand=node script\vsts\windows-run.js
28
+ )
29
+ echo RunCommand set to: %RunCommand%
30
+ env:
31
+ BUILD_ARCH: $(buildArch)
32
+ displayName: Set RunCommand based on the arch
33
+
23
34
- task : UsePythonVersion@0
24
35
inputs :
25
36
versionSpec : ' 3.8'
53
64
OS : windows
54
65
55
66
- script : |
56
- node script\vsts\windows-run.js script\bootstrap.cmd
67
+ %RunCommand% script\bootstrap.cmd
57
68
env:
58
69
BUILD_ARCH: $(buildArch)
59
70
CI: true
63
74
displayName: Bootstrap build environment
64
75
condition: or(ne(variables['MainNodeModulesRestored'], 'true'), ne(variables['ScriptNodeModulesRestored'], 'true'), ne(variables['ApmNodeModulesRestored'], 'true'))
65
76
66
- - script : node script\vsts\windows-run.js script\lint.cmd
77
+ - script : |
78
+ %RunCommand% script\lint.cmd
67
79
env:
68
80
BUILD_ARCH: $(buildArch)
69
81
displayName: Run linter
@@ -74,21 +86,21 @@ jobs:
74
86
IF [%IS_RELEASE_BRANCH%]==[true] (
75
87
ECHO Creating production artifacts for release branch %BUILD_SOURCEBRANCHNAME%
76
88
IF [%SHOULD_SIGN%]==[true] (
77
- node script\vsts\windows-run.js script\build.cmd --no-bootstrap --code-sign --compress-artifacts --create-windows-installer
89
+ %RunCommand% script\build.cmd --no-bootstrap --code-sign --compress-artifacts --create-windows-installer
78
90
) ELSE (
79
- node script\vsts\windows-run.js script\build.cmd --no-bootstrap --compress-artifacts --create-windows-installer
91
+ %RunCommand% script\build.cmd --no-bootstrap --compress-artifacts --create-windows-installer
80
92
)
81
93
) ELSE (
82
94
IF [%IS_SIGNED_ZIP_BRANCH%]==[true] (
83
95
ECHO Creating signed CI artifacts for branch %BUILD_SOURCEBRANCHNAME%
84
96
IF [%SHOULD_SIGN%]==[true] (
85
- node script\vsts\windows-run.js script\build.cmd --no-bootstrap --code-sign --compress-artifacts
97
+ %RunCommand% script\build.cmd --no-bootstrap --code-sign --compress-artifacts
86
98
) ELSE (
87
- node script\vsts\windows-run.js script\build.cmd --no-bootstrap --compress-artifacts
99
+ %RunCommand% script\build.cmd --no-bootstrap --compress-artifacts
88
100
)
89
101
) ELSE (
90
102
ECHO Pull request build, no code signing will be performed
91
- node script\vsts\windows-run.js script\build.cmd --no-bootstrap --compress-artifacts
103
+ %RunCommand% script\build.cmd --no-bootstrap --compress-artifacts
92
104
)
93
105
)
94
106
env:
@@ -102,7 +114,8 @@ jobs:
102
114
npm_config_build_from_source: true
103
115
displayName: Build Atom
104
116
105
- - script : node script\vsts\windows-run.js script\test.cmd
117
+ - script : |
118
+ %RunCommand% script\test.cmd
106
119
env:
107
120
CI: true
108
121
CI_PROVIDER: VSTS
@@ -113,7 +126,7 @@ jobs:
113
126
condition: and(succeeded(), ne(variables['Atom.SkipTests'], 'true'))
114
127
115
128
- script : >
116
- node script\vsts\windows-run.js script\postprocess-junit-results.cmd
129
+ %RunCommand% script\postprocess-junit-results.cmd
117
130
--search-folder %TEST_JUNIT_XML_ROOT% --test-results-files "**/*.xml"
118
131
env:
119
132
TEST_JUNIT_XML_ROOT: $(Common.TestResultsDirectory)\junit
0 commit comments