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

Commit bd26f12

Browse files
authored
Merge pull request #440 from rspec/update-ci-build-scripts-2020-11-21-for-main
Updates from rspec-dev (2020-11-21)
2 parents 78e02cd + 9761ca4 commit bd26f12

File tree

11 files changed

+46
-29
lines changed

11 files changed

+46
-29
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-11-18T09:45:41+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-11-21T12:40:56+00: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
@@ -13,8 +13,8 @@ on:
1313
- '*'
1414
jobs:
1515
test:
16-
name: Ruby ${{ matrix.ruby }}
17-
runs-on: ubuntu-20.04
16+
name: Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }}
17+
runs-on: ${{ matrix.os || 'ubuntu-20.04' }}
1818
strategy:
1919
matrix:
2020
ruby:
@@ -27,19 +27,43 @@ jobs:
2727
- 2.2
2828
- 2.1.9
2929
- ruby-head
30+
env:
31+
-
32+
DIFF_LCS_VERSION: "> 1.4.3"
33+
include:
34+
- ruby: jruby-9.2.13.0
35+
env:
36+
JRUBY_OPTS: "--dev"
37+
- ruby: jruby-9.1.17.0
38+
bundler: 1
39+
os: ubuntu-18.04
40+
env:
41+
JRUBY_OPTS: "--dev"
42+
- ruby: 2.7
43+
name_extra: "with diff-lcs 1.3"
44+
env:
45+
DIFF_LCS_VERSION: "~> 1.3.0"
46+
- ruby: 2.7
47+
name_extra: "with diff-lcs 1.4.3"
48+
env:
49+
DIFF_LCS_VERSION: "1.4.3"
3050
fail-fast: false
31-
continue-on-error: ${{ matrix.ruby == 'jruby-9.2.13.0' || endsWith(matrix.ruby, 'head') }}
51+
continue-on-error: ${{ matrix.allow_failure || endsWith(matrix.ruby, 'head') }}
3252
steps:
3353
- uses: actions/checkout@v2
3454
- uses: ruby/setup-ruby@v1
3555
with:
36-
bundler: ${{ (matrix.ruby == 'jruby-9.1.17.0' && 1) || 2 }}
56+
bundler: ${{ matrix.bundler || 2 }}
3757
ruby-version: ${{ matrix.ruby }}
3858
bundler-cache: true
3959
- run: script/update_rubygems_and_install_bundler
60+
env: ${{ matrix.env }}
4061
- run: script/clone_all_rspec_repos
62+
env: ${{ matrix.env }}
4163
- run: bundle install --binstubs --standalone
64+
env: ${{ matrix.env }}
4265
- run: script/run_build
66+
env: ${{ matrix.env }}
4367

4468
windows:
4569
name: Ruby ${{ matrix.ruby }} (Windows)

.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 2020-11-18T09:45:41+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-11-21T12:40:56+00: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

.travis.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-11-18T09:45:41+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-11-21T12:40:56+00: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
# In order to install old Rubies, we need to use old Ubuntu distibution.
@@ -20,24 +20,13 @@ rvm:
2020
- 1.9.3
2121
- 2.0.0
2222
- ree
23-
- rbx-3
24-
- jruby-9.1.7.0 # pin JRuby to this until travis/rvm can install later versions
25-
- jruby-head
2623
- jruby-1.7
2724
env:
2825
- JRUBY_OPTS='--dev'
2926
matrix:
3027
include:
3128
- rvm: jruby-1.7
3229
env: JRUBY_OPTS='--dev --1.8'
33-
- rvm: 2.7.1
34-
env: DIFF_LCS_VERSION="~> 1.3.0"
35-
- rvm: 2.7.1
36-
env: DIFF_LCS_VERSION="1.4.3"
37-
allow_failures:
38-
- rvm: jruby-head
39-
- rvm: ruby-head
40-
- rvm: rbx-3
4130
fast_finish: true
4231
branches:
4332
only:

lib/rspec/support/ruby_features.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def truffleruby?
6060
module RubyFeatures
6161
module_function
6262

63-
if Ruby.jruby?
63+
if Ruby.jruby? && RUBY_VERSION.to_f < 1.9
6464
# On JRuby 1.7 `--1.8` mode, `Process.respond_to?(:fork)` returns true,
6565
# but when you try to fork, it raises an error:
6666
# NotImplementedError: fork is not available on this platform
@@ -111,8 +111,10 @@ def supports_taint?
111111
ripper_requirements.push(Ruby.jruby_version >= '1.7.5')
112112
# Ripper on JRuby 9.0.0.0.rc1 - 9.1.8.0 reports wrong line number
113113
# or cannot parse source including `:if`.
114-
# Ripper on JRuby 9.x.x.x < 9.2.1.0 can't handle keyword arguments.
115-
ripper_requirements.push(!Ruby.jruby_version.between?('9.0.0.0.rc1', '9.2.0.0'))
114+
# Ripper on JRuby 9.x.x.x < 9.1.17.0 can't handle keyword arguments
115+
# Neither can JRuby 9.2, e.g. < 9.2.1.0
116+
ripper_requirements.push(!Ruby.jruby_version.between?('9.0.0.0.rc1', '9.1.16.0'))
117+
ripper_requirements.push(!Ruby.jruby_version.between?('9.1.999.0', '9.1.999.0'))
116118
end
117119

118120
if ripper_requirements.all?

lib/rspec/support/spec/shell_out.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def run_ruby_with_current_load_path(ruby_command, *flags)
5959
%r{bundler/source/rubygems},
6060
# Ignore bundler + rubygems warning.
6161
%r{site_ruby/\d\.\d\.\d/rubygems},
62-
%r{jruby-\d\.\d\.\d\.\d/lib/ruby/stdlib/rubygems},
62+
%r{jruby-\d\.\d\.\d+\.\d/lib/ruby/stdlib/rubygems},
6363
# This is required for windows for some reason
6464
%r{lib/bundler/rubygems},
6565
# This is a JRuby file that generates warnings on 9.0.3.0
@@ -70,8 +70,10 @@ def run_ruby_with_current_load_path(ruby_command, *flags)
7070
%r{ffi-1\.13\.\d+-java},
7171
%r{uninitialized constant FFI},
7272
# These are related to the above, there is a warning about io from FFI
73-
%r{jruby-\d\.\d\.\d\.\d/lib/ruby/stdlib/io},
73+
%r{jruby-\d\.\d\.\d+\.\d/lib/ruby/stdlib/io},
7474
%r{io/console on JRuby shells out to stty for most operations},
75+
# This is a JRuby 9.1.17.0 error on Github Actions
76+
%r{io/console not supported; tty will not be manipulated},
7577
]
7678

7779
def strip_known_warnings(input)

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 2020-11-18T09:45:41+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-11-21T12:40:56+00: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 2020-11-18T09:45:41+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-11-21T12:40:56+00: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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-11-18T09:45:41+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-11-21T12:40:56+00: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 )"

script/predicate_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 2020-11-18T09:45:41+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-11-21T12:40:56+00: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 {

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 2020-11-18T09:45:41+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-11-21T12:40:56+00: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: 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 2020-11-18T09:45:41+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-11-21T12:40:56+00: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

0 commit comments

Comments
 (0)