|
94 | 94 | - ${{ if eq(matrix.BuildConfiguration, 'Debug') }}:
|
95 | 95 | # The build is more likely to crash after we've started other bits that
|
96 | 96 | # take up memory. Do the expensive parts of the build first.
|
97 |
| - - script: yarn windows --no-launch --no-packager --no-deploy --no-autolink --arch ${{ matrix.BuildPlatform }} --logging --buildLogDirectory $(BuildLogDirectory) |
98 |
| - displayName: yarn windows --no-launch |
99 |
| - workingDirectory: packages/integration-test-app |
| 97 | + - template: ../templates/run-windows-with-certificates.yml |
| 98 | + parameters: |
| 99 | + buildEnvironment: ${{ parameters.BuildEnvironment }} |
| 100 | + buildConfiguration: ${{ matrix.BuildConfiguration }} |
| 101 | + buildPlatform: ${{ matrix.BuildPlatform }} |
| 102 | + buildLogDirectory: $(BuildLogDirectory) |
| 103 | + workingDirectory: packages/integration-test-app |
| 104 | + moreMSBuildProps: --no-packager --no-deploy --no-autolink |
100 | 105 |
|
101 | 106 | - powershell: Start-Process npm.cmd -ArgumentList "run","start"
|
102 | 107 | displayName: Start packager
|
@@ -127,14 +132,24 @@ jobs:
|
127 | 132 | # There's a slight race condition here, where we assume Chrome will open
|
128 | 133 | # before this launches the app. This step takes ~1m on CI machines so it
|
129 | 134 | # shouldn't be a practical concern.
|
130 |
| - - script: yarn windows --no-build ${{ matrix.DeployOptions }} --no-packager --no-autolink --arch ${{ matrix.BuildPlatform }} --logging |
131 |
| - displayName: yarn windows --no-build |
132 |
| - workingDirectory: packages/integration-test-app |
| 135 | + - template: ../templates/run-windows-with-certificates.yml |
| 136 | + parameters: |
| 137 | + buildEnvironment: ${{ parameters.BuildEnvironment }} |
| 138 | + buildConfiguration: ${{ matrix.BuildConfiguration }} |
| 139 | + buildPlatform: ${{ matrix.BuildPlatform }} |
| 140 | + buildLogDirectory: $(BuildLogDirectory) |
| 141 | + workingDirectory: packages/integration-test-app |
| 142 | + moreMSBuildProps: --no-build ${{ matrix.DeployOptions }} --no-packager --no-deploy --no-autolink |
133 | 143 |
|
134 | 144 | - ${{ if eq(matrix.BuildConfiguration, 'Release') }}:
|
135 |
| - - script: yarn windows --release ${{ matrix.DeployOptions }} --no-packager --no-autolink --arch ${{ matrix.BuildPlatform }} --logging --buildLogDirectory $(BuildLogDirectory) |
136 |
| - displayName: yarn windows --release |
137 |
| - workingDirectory: packages/integration-test-app |
| 145 | + - template: ../templates/run-windows-with-certificates.yml |
| 146 | + parameters: |
| 147 | + buildEnvironment: ${{ parameters.BuildEnvironment }} |
| 148 | + buildConfiguration: ${{ matrix.BuildConfiguration }} |
| 149 | + buildPlatform: ${{ matrix.BuildPlatform }} |
| 150 | + buildLogDirectory: $(BuildLogDirectory) |
| 151 | + workingDirectory: packages/integration-test-app |
| 152 | + moreMSBuildProps: ${{ matrix.DeployOptions }} --no-packager --no-autolink |
138 | 153 |
|
139 | 154 | - ${{ if ne(matrix.DeployOptions, '--no-deploy') }}:
|
140 | 155 | - powershell: |
|
|
0 commit comments