This repository was archived by the owner on Nov 30, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 753
Updated ci build scripts (from rspec-dev) #2790
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
dd0492e
Drop old ruby conditional branch
pirj ed3f3b1
Drop old rubies
pirj ddbb2d0
Drop old Ruby builds from Travis
pirj eccf30d
Unset RUBYOPT for rspec-rails run
pirj 3b1980b
The rest of the changes
pirj 891eb7e
Experiment: do not use bundle standalone
pirj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
#!/bin/bash | ||
# This file was generated on 2020-11-22T07:41:13+00:00 from the rspec-dev repo. | ||
# This file was generated on 2020-12-07T01:07:10+03:00 from the rspec-dev repo. | ||
# DO NOT modify it by hand as your changes will get lost the next time it is generated. | ||
|
||
set -e | ||
source script/functions.sh | ||
|
||
if is_ruby_23_plus; then | ||
yes | gem update --system | ||
yes | gem install bundler | ||
else | ||
echo "Warning installing older versions of Rubygems / Bundler" | ||
gem update --system '2.7.8' | ||
gem install bundler -v '1.17.3' | ||
fi | ||
yes | gem update --system | ||
yes | gem install bundler |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JonRowe I've tried many options, and this one, the most straightforward, is the only one that worked.
Without
unset RUBYOPT
Rails is complaining thatuninitialized constant Gem
.With
--binstubs --standalone --path=../bundle
and subsequentbin/rspec
the binstub apparently ceases to find ../bundle:Would you agree for such a change?
standalone
, but is it worth such a complication?SPECS_HAVE_RUN_FILE
is quite an odd flag to prevent duplicate runs, I can't think of a scenario where specs are started twice for the same repo[ -d ../$1 ]
is useless - we do clone it, and if we don't - we don'trun_spec_suite_for
for this dirTo my huge surprise, the problem with
uninitialized constant Gem
can be reproduced with a small single commit comparing to the green 4-0-dev. That very commit that drops.travis.yml
and barely does anything else.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its the
ffi
version, I had to fix rspec-core for main too, I've applied that patch to4-0-dev
and opened simplified PRs to see how they goThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
I'll close this series for now, we can address the removal of .travis.yml later.