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

Commit 778fc0a

Browse files
authored
Merge pull request #2821 from rspec/update-ci-build-scripts-2020-12-26-for-main
Updates from rspec-dev (2020-12-26)
2 parents 47b7608 + 8168e1e commit 778fc0a

File tree

9 files changed

+35
-11
lines changed

9 files changed

+35
-11
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-12-22T08:25:54+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-12-26T10:45:27+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
@@ -30,11 +30,13 @@ jobs:
3030
- 2.3
3131
- 2.2
3232
- 2.1.9
33-
- ruby-head
3433
env:
3534
-
3635
DIFF_LCS_VERSION: "> 1.4.3"
3736
include:
37+
- ruby: ruby-head
38+
env:
39+
RUBY_HEAD: true
3840
- ruby: jruby-9.2.13.0
3941
env:
4042
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-22T08:25:54+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-12-26T10:45:27+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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-12-22T08:25:54+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-12-26T10:45:27+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.

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-22T08:25:54+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-12-26T10:45:27+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-22T08:25:54+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-12-26T10:45:27+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-22T08:25:54+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-12-26T10:45:27+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-22T08:25:54+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-12-26T10:45:27+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-22T08:25:54+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-12-26T10:45:27+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-22T08:25:54+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-12-26T10:45:27+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)