Skip to content

Commit

Permalink
ci/appveyor: Build packages after tests were run
Browse files Browse the repository at this point in the history
  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.
  • Loading branch information
taratatach committed Jan 18, 2022
1 parent bfe0eef commit 8d7d624
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8d7d624

Please sign in to comment.