Skip to content

Commit

Permalink
Fix CI build failures due to minitest 5.19 release (#146)
Browse files Browse the repository at this point in the history
* Restore compatibility between old mocha and new minitest

Minitest 5.19 now requires the `MT_COMPAT` env var be explicitly set to
enable the `MiniTest` naming compatibility. Old versions of the mocha
gem use `MiniTest`, so this is required to run tests.

This should fix failing CI builds.

* Add MT_COMPAT fix for Appveyor as well
  • Loading branch information
mattbrictson authored Jul 30, 2023
1 parent 5f28258 commit dfedbe0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ executors:
type: string
docker:
- image: ruby:<< parameters.version >>
environment:
MT_COMPAT: "1" # Allows old versions of mocha gem to work with minitest

commands:
bundle_install:
Expand Down
2 changes: 2 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
version: "{build}"
skip_tags: true
skip_branch_with_pr: true
environment:
MT_COMPAT: "1" # Allows old versions of mocha gem to work with minitest
install:
- set PATH=C:\Ruby26-x64\bin;%PATH%
- bundle install --retry=3
Expand Down

0 comments on commit dfedbe0

Please sign in to comment.