Skip to content

Commit 95f26d2

Browse files
author
Benjamin Pasero
committed
builds - add VSCODE_CONTINUE_ON_TEST_ERRORS
1 parent b595399 commit 95f26d2

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

build/azure-pipelines/darwin/product-build-darwin.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,14 @@ steps:
9898
./scripts/test.sh --build --tfs "Unit Tests"
9999
displayName: Run unit tests (Electron)
100100
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
101+
continueOnError: eq(variables['VSCODE_CONTINUE_ON_TEST_ERRORS'], 'true')
101102

102103
- script: |
103104
set -e
104105
yarn test-browser --build --browser chromium --browser webkit --browser firefox
105106
displayName: Run unit tests (Browser)
106107
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
108+
continueOnError: eq(variables['VSCODE_CONTINUE_ON_TEST_ERRORS'], 'true')
107109

108110
- script: |
109111
# Figure out the full absolute path of the product we just built
@@ -117,6 +119,7 @@ steps:
117119
./scripts/test-integration.sh --build --tfs "Integration Tests"
118120
displayName: Run integration tests (Electron)
119121
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
122+
continueOnError: eq(variables['VSCODE_CONTINUE_ON_TEST_ERRORS'], 'true')
120123

121124
- script: |
122125
set -e
@@ -127,30 +130,32 @@ steps:
127130
./resources/server/test/test-remote-integration.sh
128131
displayName: Run remote integration tests (Electron)
129132
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
133+
continueOnError: eq(variables['VSCODE_CONTINUE_ON_TEST_ERRORS'], 'true')
130134

131135
- script: |
132136
set -e
133137
VSCODE_REMOTE_SERVER_PATH="$(agent.builddirectory)/vscode-reh-web-darwin" \
134138
./resources/server/test/test-web-integration.sh --browser webkit
135139
displayName: Run integration tests (Browser)
136140
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
141+
continueOnError: eq(variables['VSCODE_CONTINUE_ON_TEST_ERRORS'], 'true')
137142

138143
- script: |
139144
set -e
140145
APP_ROOT=$(agent.builddirectory)/VSCode-darwin
141146
APP_NAME="`ls $APP_ROOT | head -n 1`"
142147
yarn smoketest --build "$APP_ROOT/$APP_NAME"
143-
continueOnError: true
144148
displayName: Run smoke tests (Electron)
145149
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
150+
continueOnError: true
146151

147152
- script: |
148153
set -e
149154
VSCODE_REMOTE_SERVER_PATH="$(agent.builddirectory)/vscode-reh-web-darwin" \
150155
yarn smoketest --web --headless
151-
continueOnError: true
152156
displayName: Run smoke tests (Browser)
153157
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
158+
continueOnError: true
154159

155160
- script: |
156161
set -e

build/azure-pipelines/linux/product-build-linux.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,14 @@ steps:
103103
DISPLAY=:10 ./scripts/test.sh --build --tfs "Unit Tests"
104104
displayName: Run unit tests (Electron)
105105
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
106+
continueOnError: eq(variables['VSCODE_CONTINUE_ON_TEST_ERRORS'], 'true')
106107

107108
- script: |
108109
set -e
109110
DISPLAY=:10 yarn test-browser --build --browser chromium
110111
displayName: Run unit tests (Browser)
111112
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
113+
continueOnError: eq(variables['VSCODE_CONTINUE_ON_TEST_ERRORS'], 'true')
112114

113115
- script: |
114116
# Figure out the full absolute path of the product we just built
@@ -122,6 +124,7 @@ steps:
122124
DISPLAY=:10 ./scripts/test-integration.sh --build --tfs "Integration Tests"
123125
displayName: Run integration tests (Electron)
124126
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
127+
continueOnError: eq(variables['VSCODE_CONTINUE_ON_TEST_ERRORS'], 'true')
125128

126129
- script: |
127130
set -e
@@ -132,13 +135,15 @@ steps:
132135
DISPLAY=:10 ./resources/server/test/test-remote-integration.sh
133136
displayName: Run remote integration tests (Electron)
134137
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
138+
continueOnError: eq(variables['VSCODE_CONTINUE_ON_TEST_ERRORS'], 'true')
135139

136140
- script: |
137141
set -e
138142
VSCODE_REMOTE_SERVER_PATH="$(agent.builddirectory)/vscode-reh-web-linux-x64" \
139143
DISPLAY=:10 ./resources/server/test/test-web-integration.sh --browser chromium
140144
displayName: Run integration tests (Browser)
141145
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
146+
continueOnError: eq(variables['VSCODE_CONTINUE_ON_TEST_ERRORS'], 'true')
142147

143148
- script: |
144149
set -e

build/azure-pipelines/win32/product-build-win32.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,15 @@ steps:
111111
exec { .\scripts\test.bat --build --tfs "Unit Tests" }
112112
displayName: Run unit tests (Electron)
113113
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
114+
continueOnError: eq(variables['VSCODE_CONTINUE_ON_TEST_ERRORS'], 'true')
114115

115116
- powershell: |
116117
. build/azure-pipelines/win32/exec.ps1
117118
$ErrorActionPreference = "Stop"
118119
exec { yarn test-browser --build --browser chromium --browser firefox }
119120
displayName: Run unit tests (Browser)
120121
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
122+
continueOnError: eq(variables['VSCODE_CONTINUE_ON_TEST_ERRORS'], 'true')
121123

122124
- powershell: |
123125
# Figure out the full absolute path of the product we just built
@@ -131,6 +133,7 @@ steps:
131133
exec { $env:INTEGRATION_TEST_ELECTRON_PATH = "$AppRoot\$AppNameShort.exe"; $env:VSCODE_REMOTE_SERVER_PATH = "$(agent.builddirectory)\vscode-reh-win32-$(VSCODE_ARCH)"; .\scripts\test-integration.bat --build --tfs "Integration Tests" }
132134
displayName: Run integration tests (Electron)
133135
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
136+
continueOnError: eq(variables['VSCODE_CONTINUE_ON_TEST_ERRORS'], 'true')
134137

135138
- powershell: |
136139
. build/azure-pipelines/win32/exec.ps1
@@ -141,13 +144,15 @@ steps:
141144
exec { $env:INTEGRATION_TEST_ELECTRON_PATH = "$AppRoot\$AppNameShort.exe"; $env:VSCODE_REMOTE_SERVER_PATH = "$(agent.builddirectory)\vscode-reh-win32-$(VSCODE_ARCH)"; .\resources\server\test\test-remote-integration.bat }
142145
displayName: Run remote integration tests (Electron)
143146
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
147+
continueOnError: eq(variables['VSCODE_CONTINUE_ON_TEST_ERRORS'], 'true')
144148

145149
- powershell: |
146150
. build/azure-pipelines/win32/exec.ps1
147151
$ErrorActionPreference = "Stop"
148152
exec { $env:VSCODE_REMOTE_SERVER_PATH = "$(agent.builddirectory)\vscode-reh-web-win32-$(VSCODE_ARCH)"; .\resources\server\test\test-web-integration.bat --browser firefox }
149153
displayName: Run integration tests (Browser)
150154
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
155+
continueOnError: eq(variables['VSCODE_CONTINUE_ON_TEST_ERRORS'], 'true')
151156

152157
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
153158
inputs:

0 commit comments

Comments
 (0)