Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit ea27f4f

Browse files
authored
Merge pull request #508 from rspec/update-ci-build-scripts-2021-07-13-for-main
Updates from rspec-dev (2021-07-13)
2 parents 4ad8392 + 5a90173 commit ea27f4f

File tree

10 files changed

+24
-22
lines changed

10 files changed

+24
-22
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2021-04-23T09:17:32+01:00 from the rspec-dev repo.
1+
# This file was generated on 2021-07-13T10:25:10+01:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
name: RSpec CI
@@ -60,11 +60,12 @@ jobs:
6060
- uses: actions/checkout@v2
6161
- uses: ruby/setup-ruby@v1
6262
with:
63-
bundler: ${{ matrix.bundler || 2 }}
63+
bundler: ${{ matrix.bundler || '2.2.22' }}
6464
ruby-version: ${{ matrix.ruby }}
6565
- run: script/update_rubygems_and_install_bundler
6666
- run: script/clone_all_rspec_repos
67-
- run: bundle install --binstubs --standalone
67+
- run: bundle install --standalone
68+
- run: bundle binstubs --all
6869
- run: script/run_build
6970

7071
legacy:
@@ -125,7 +126,7 @@ jobs:
125126
- uses: actions/checkout@v2
126127
- uses: ruby/setup-ruby@v1
127128
with:
128-
bundler: 2
129+
bundler: '2.2.22'
129130
ruby-version: ${{ matrix.ruby }}
130131
bundler-cache: true
131132
- run: cinst ansicon

.rubocop_rspec_base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2021-04-23T09:17:32+01:00 from the rspec-dev repo.
1+
# This file was generated on 2021-07-13T10:25:10+01:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
# This file contains defaults for RSpec projects. Individual projects

script/ci_functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2021-04-23T09:17:32+01:00 from the rspec-dev repo.
1+
# This file was generated on 2021-07-13T10:25:10+01:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
# Taken from:

script/clone_all_rspec_repos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2021-04-23T09:17:32+01:00 from the rspec-dev repo.
2+
# This file was generated on 2021-07-13T10:25:10+01:00 from the rspec-dev repo.
33
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
44

55
set -e

script/cucumber.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2021-04-23T09:17:32+01:00 from the rspec-dev repo.
2+
# This file was generated on 2021-07-13T10:25:10+01:00 from the rspec-dev repo.
33
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
44

55
set -e

script/functions.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2021-04-23T09:17:32+01:00 from the rspec-dev repo.
1+
# This file was generated on 2021-07-13T10:25:10+01:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@@ -139,10 +139,7 @@ function check_binstubs {
139139
echo " $ bundle binstubs$gems"
140140
echo
141141
echo " # To binstub all gems"
142-
echo " $ bundle install --binstubs"
143-
echo
144-
echo " # To binstub all gems and avoid loading bundler"
145-
echo " $ bundle install --binstubs --standalone"
142+
echo " $ bundle binstubs --all"
146143
fi
147144

148145
return $success

script/legacy_setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2021-04-23T09:17:32+01:00 from the rspec-dev repo.
2+
# This file was generated on 2021-07-13T10:25:10+01:00 from the rspec-dev repo.
33
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
44

55
set -e

script/predicate_functions.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2021-04-23T09:17:32+01:00 from the rspec-dev repo.
1+
# This file was generated on 2021-07-13T10:25:10+01:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
function is_mri {
@@ -129,9 +129,13 @@ function documentation_enforced {
129129
}
130130

131131
function style_and_lint_enforced {
132-
if [ -x ./bin/rubocop ]; then
133-
return 0
134-
else
132+
if is_ruby_head; then
135133
return 1
134+
else
135+
if [ -x ./bin/rubocop ]; then
136+
return 0
137+
else
138+
return 1
139+
fi
136140
fi
137141
}

script/run_build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2021-04-23T09:17:32+01:00 from the rspec-dev repo.
2+
# This file was generated on 2021-07-13T10:25:10+01:00 from the rspec-dev repo.
33
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
44

55
set -e

script/update_rubygems_and_install_bundler

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
2-
# This file was generated on 2021-04-23T09:17:32+01:00 from the rspec-dev repo.
2+
# This file was generated on 2021-07-13T10:25:10+01:00 from the rspec-dev repo.
33
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
44

55
set -e
66
source script/functions.sh
77

88
if is_ruby_23_plus; then
9-
yes | gem update --system
10-
yes | gem install bundler
9+
yes | gem update --system '3.2.22'
10+
yes | gem install bundler -v '2.2.22'
1111
else
1212
echo "Warning installing older versions of Rubygems / Bundler"
1313
gem update --system '2.7.8'

0 commit comments

Comments
 (0)