Skip to content

Commit d7a4f60

Browse files
committed
[CI] Early exit on error on windows
1 parent 89639b1 commit d7a4f60

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

azure-pipelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,13 @@ stages:
173173
- script: |
174174
set PATH=C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin;%SWIFT_DEV_PATH%;%ICU_PATH%;%PATH%
175175
swift.exe --version
176-
swift.exe build %SWIFTFLAGS%
177-
swift.exe test --filter BitByteDataTests %SWIFTFLAGS% %SWIFTTESTFLAGS%
176+
swift.exe build %SWIFTFLAGS% || exit /b %errorlevel%
177+
swift.exe test --filter BitByteDataTests %SWIFTFLAGS% %SWIFTTESTFLAGS% || exit /b %errorlevel%
178178
displayName: 'Build & Test'
179179
- script: |
180180
set PATH=C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin;%SWIFT_DEV_PATH%;%ICU_PATH%;%PATH%
181181
swift.exe --version
182-
swift.exe build -c release %SWIFTFLAGS%
182+
swift.exe build -c release %SWIFTFLAGS% || exit /b %errorlevel%
183183
displayName: 'Build Release'
184184
- stage: deploy
185185
displayName: Deploy

0 commit comments

Comments
 (0)