From 8d7d62441aa9112b1e11dfa7b1b714c671631279 Mon Sep 17 00:00:00 2001 From: Erwan Guyader Date: Tue, 18 Jan 2022 15:19:18 +0100 Subject: [PATCH] ci/appveyor: Build packages after tests were run Our scenarios test suite is not very stable on AppVeyor and builds can fail quite a lot before finally passing for no specific reason. This can prevent us from shipping a release while tests were passing on a previous commit with no code changes. Building packages in a flow step separate from tests ensures we can ship releases even when scenarios fail while still giving us the possibility to refrain from shipping the built package if some scenario fails for what looks to be a good reason. --- .appveyor.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.appveyor.yml b/.appveyor.yml index ab6071f2d..bd02bfb98 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -24,6 +24,8 @@ test_script: - ps: if ($env:BUILD_JOB -eq "short_tests") { yarn test:unit --timeout $env:MOCHA_TIMEOUT } - ps: if ($env:BUILD_JOB -eq "short_tests") { yarn test:integration --timeout $env:MOCHA_TIMEOUT } - ps: if ($env:BUILD_JOB -eq "scenarios_build") { yarn test:scenarios --timeout $env:MOCHA_TIMEOUT } + +after_test: - ps: if ($env:BUILD_JOB -eq "scenarios_build") { yarn dist:all } on_failure: