Skip to content

Commit 18fc74a

Browse files
committed
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.
1 parent bfe0eef commit 18fc74a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.appveyor.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ test_script:
2424
- ps: if ($env:BUILD_JOB -eq "short_tests") { yarn test:unit --timeout $env:MOCHA_TIMEOUT }
2525
- ps: if ($env:BUILD_JOB -eq "short_tests") { yarn test:integration --timeout $env:MOCHA_TIMEOUT }
2626
- ps: if ($env:BUILD_JOB -eq "scenarios_build") { yarn test:scenarios --timeout $env:MOCHA_TIMEOUT }
27-
- ps: if ($env:BUILD_JOB -eq "scenarios_build") { yarn dist:all }
2827

2928
on_failure:
3029
- node --version
3130
- npm --version
3231
- yarn --version
32+
33+
on_finish:
34+
- ps: if ($env:BUILD_JOB -eq "scenarios_build") { yarn dist:all }
35+

0 commit comments

Comments
 (0)