Skip to content

Commit

Permalink
[mocks] Merge pull request rspec/rspec-mocks#1434 from rspec/update-c…
Browse files Browse the repository at this point in the history
…i-build-scripts-2021-07-13-for-3-10-maintenance

Updates from rspec-dev (2021-07-15)

---
This commit was imported from rspec/rspec-mocks@102bca0.
  • Loading branch information
JonRowe authored Jul 15, 2021
2 parents 26c47ad + ccc535a commit b0aedb9
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 22 deletions.
9 changes: 5 additions & 4 deletions rspec-mocks/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2021-04-23T10:26:09+01:00 from the rspec-dev repo.
# This file was generated on 2021-07-15T12:41:20+01:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

name: RSpec CI
Expand Down Expand Up @@ -60,11 +60,12 @@ jobs:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
bundler: ${{ matrix.bundler || 2 }}
bundler: ${{ matrix.bundler || '2.2.22' }}
ruby-version: ${{ matrix.ruby }}
- run: script/update_rubygems_and_install_bundler
- run: script/clone_all_rspec_repos
- run: bundle install --binstubs --standalone
- run: bundle install --standalone
- run: bundle binstubs --all
- run: script/run_build

legacy:
Expand Down Expand Up @@ -125,7 +126,7 @@ jobs:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
bundler: 2
bundler: '2.2.22'
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: cinst ansicon
Expand Down
2 changes: 1 addition & 1 deletion rspec-mocks/.rubocop_rspec_base.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2021-04-23T10:26:09+01:00 from the rspec-dev repo.
# This file was generated on 2021-07-15T12:41:20+01:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

# This file contains defaults for RSpec projects. Individual projects
Expand Down
2 changes: 1 addition & 1 deletion rspec-mocks/script/ci_functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2021-04-23T10:26:09+01:00 from the rspec-dev repo.
# This file was generated on 2021-07-15T12:41:20+01:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

# Taken from:
Expand Down
2 changes: 1 addition & 1 deletion rspec-mocks/script/clone_all_rspec_repos
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2021-04-23T10:26:09+01:00 from the rspec-dev repo.
# This file was generated on 2021-07-15T12:41:20+01: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
Expand Down
2 changes: 1 addition & 1 deletion rspec-mocks/script/cucumber.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2021-04-23T10:26:09+01:00 from the rspec-dev repo.
# This file was generated on 2021-07-15T12:41:20+01: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
Expand Down
8 changes: 3 additions & 5 deletions rspec-mocks/script/functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2021-04-23T10:26:09+01:00 from the rspec-dev repo.
# This file was generated on 2021-07-15T12:41:20+01:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Expand Down Expand Up @@ -90,6 +90,7 @@ function run_spec_suite_for {
unset BUNDLE_GEMFILE
bundle_install_flags=`cat .github/workflows/ci.yml | grep "bundle install" | sed 's/.* bundle install//'`
travis_retry eval "(unset RUBYOPT; exec bundle install $bundle_install_flags)"
travis_retry eval "(unset RUBYOPT; exec bundle binstubs --all)"
run_specs_and_record_done
popd
else
Expand Down Expand Up @@ -139,10 +140,7 @@ function check_binstubs {
echo " $ bundle binstubs$gems"
echo
echo " # To binstub all gems"
echo " $ bundle install --binstubs"
echo
echo " # To binstub all gems and avoid loading bundler"
echo " $ bundle install --binstubs --standalone"
echo " $ bundle binstubs --all"
fi

return $success
Expand Down
2 changes: 1 addition & 1 deletion rspec-mocks/script/legacy_setup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2021-04-23T10:26:09+01:00 from the rspec-dev repo.
# This file was generated on 2021-07-15T12:41:20+01: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
Expand Down
12 changes: 8 additions & 4 deletions rspec-mocks/script/predicate_functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2021-04-23T10:26:09+01:00 from the rspec-dev repo.
# This file was generated on 2021-07-15T12:41:20+01:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

function is_mri {
Expand Down Expand Up @@ -129,9 +129,13 @@ function documentation_enforced {
}

function style_and_lint_enforced {
if [ -x ./bin/rubocop ]; then
return 0
else
if is_ruby_head; then
return 1
else
if [ -x ./bin/rubocop ]; then
return 0
else
return 1
fi
fi
}
2 changes: 1 addition & 1 deletion rspec-mocks/script/run_build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2021-04-23T10:26:09+01:00 from the rspec-dev repo.
# This file was generated on 2021-07-15T12:41:20+01: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
Expand Down
6 changes: 3 additions & 3 deletions rspec-mocks/script/update_rubygems_and_install_bundler
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash
# This file was generated on 2021-04-23T10:26:09+01:00 from the rspec-dev repo.
# This file was generated on 2021-07-15T12:41:20+01: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
yes | gem update --system '3.2.22'
yes | gem install bundler -v '2.2.22'
else
echo "Warning installing older versions of Rubygems / Bundler"
gem update --system '2.7.8'
Expand Down

0 comments on commit b0aedb9

Please sign in to comment.