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

Commit b5a4672

Browse files
authored
Merge pull request #2827 from rspec/update-ci-build-scripts-2020-12-27-for-4-0-dev
Updates from rspec-dev (2020-12-27)
2 parents 832adc1 + 1c31c33 commit b5a4672

File tree

8 files changed

+35
-11
lines changed

8 files changed

+35
-11
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-12-21T20:11:14+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-12-27T12:28:54+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
@@ -22,17 +22,19 @@ jobs:
2222
strategy:
2323
matrix:
2424
ruby:
25-
- 3.0.0-rc1
25+
- 3.0
2626
- 2.7
2727
- 2.6
2828
- 2.5
2929
- 2.4
3030
- 2.3
31-
- ruby-head
3231
env:
3332
-
3433
DIFF_LCS_VERSION: "> 1.4.3"
3534
include:
35+
- ruby: ruby-head
36+
env:
37+
RUBY_HEAD: true
3638
- ruby: jruby-9.2.13.0
3739
env:
3840
JRUBY_OPTS: "--dev"

.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-12-21T20:11:14+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-12-27T12:28:54+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

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-12-21T20:11:14+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-12-27T12:28:54+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-12-21T20:11:14+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-12-27T12:28:54+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-12-21T20:11:14+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-12-27T12:28:54+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: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-12-21T20:11:14+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-12-27T12:28:54+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 {
@@ -11,6 +11,28 @@ function is_mri {
1111
fi;
1212
}
1313

14+
function is_ruby_head {
15+
# This checks for the presence of our CI's ruby-head env variable
16+
if [ -z ${RUBY_HEAD+x} ]; then
17+
return 1
18+
else
19+
return 0
20+
fi;
21+
}
22+
23+
function supports_cross_build_checks {
24+
if is_mri; then
25+
# We don't run cross build checks on ruby-head
26+
if is_ruby_head; then
27+
return 1
28+
else
29+
return 0
30+
fi
31+
else
32+
return 1
33+
fi
34+
}
35+
1436
function is_jruby {
1537
if ruby -e "exit(defined?(RUBY_PLATFORM) && RUBY_PLATFORM == 'java')"; then
1638
# RUBY_ENGINE only returns 'ruby' on MRI.

script/run_build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2020-12-21T20:11:14+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-12-27T12:28:54+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
@@ -28,7 +28,7 @@ if style_and_lint_enforced; then
2828
fold "rubocop" check_style_and_lint
2929
fi
3030

31-
if is_mri; then
31+
if supports_cross_build_checks; then
3232
fold "one-by-one specs" run_specs_one_by_one
3333
run_all_spec_suites
3434
else

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-12-21T20:11:14+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-12-27T12:28:54+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)