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

Commit 92de152

Browse files
authored
Merge pull request #1403 from rspec/update-ci-build-scripts-2021-01-22-for-main
Updates from rspec-dev (2021-01-22)
2 parents 65e97d1 + 5d10afb commit 92de152

12 files changed

+39
-19
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2021-01-02T20:21:17+00:00 from the rspec-dev repo.
1+
# This file was generated on 2021-01-22T09:55:42+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
@@ -70,7 +70,9 @@ jobs:
7070
legacy:
7171
name: Legacy Ruby Builds (${{ matrix.container.version }})
7272
runs-on: ubuntu-20.04
73-
container: ${{ matrix.container.tag }}
73+
container:
74+
image: ${{ matrix.container.tag }}
75+
options: ${{ matrix.container.options || '--add-host github-complains-if-this-is-empty.com:127.0.0.1' }}
7476
strategy:
7577
fail-fast: false
7678
matrix:
@@ -79,13 +81,25 @@ jobs:
7981
tag: rspec/ci:2.0.0
8082
- version: "1.9.3"
8183
tag: rspec/ci:1.9.3
84+
- version: "1.9.2"
85+
tag: rspec/ci:1.9.2
86+
options: "--add-host rubygems.org:151.101.0.70 --add-host api.rubygems.org:151.101.0.70"
87+
- version: "REE"
88+
tag: rspec/ci:ree
89+
options: "--add-host rubygems.org:151.101.0.70 --add-host api.rubygems.org:151.101.0.70"
8290
- version: "JRuby 1.7"
8391
tag: rspec/ci:jruby-1.7
92+
- version: "JRuby 1.7 1.8 mode"
93+
tag: rspec/ci:jruby-1.7
94+
jruby_opts: '--dev --1.8'
95+
pre: gem uninstall jruby-openssl
96+
options: "--add-host rubygems.org:151.101.0.70 --add-host api.rubygems.org:151.101.0.70"
8497
env:
8598
LEGACY_CI: true
8699
JRUBY_OPTS: ${{ matrix.container.jruby_opts || '--dev' }}
87100
steps:
88101
- uses: actions/checkout@v2
102+
- run: ${{ matrix.container.pre }}
89103
- run: script/legacy_setup.sh
90104
- run: bundle exec bin/rspec
91105
- run: bundle exec script/cucumber.sh

.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-01-02T20:21:17+00:00 from the rspec-dev repo.
1+
# This file was generated on 2021-01-22T09:55:42+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 & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2021-01-02T20:21:17+00:00 from the rspec-dev repo.
1+
# This file was generated on 2021-01-22T09:55:42+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.
@@ -16,12 +16,7 @@ bundler_args: "--binstubs --standalone --without documentation --path ../bundle"
1616
script: "script/run_build"
1717
rvm:
1818
- 1.8.7
19-
- 1.9.2
20-
- ree
2119
matrix:
22-
include:
23-
- rvm: jruby-1.7
24-
env: JRUBY_OPTS='--dev --1.8'
2520
fast_finish: true
2621
branches:
2722
only:

Gemfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ end
4646

4747
if RUBY_VERSION <= '2.3.0' && !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/)
4848
gem "childprocess", "< 1.0.0"
49+
elsif RUBY_VERSION < '2.0.0'
50+
gem "childprocess", "< 1.0.0"
4951
end
5052

5153
if RUBY_VERSION < '1.9.2'
@@ -57,13 +59,21 @@ if RUBY_VERSION < '2.4.0'
5759
gem 'minitest', '< 5.12.0'
5860
end
5961

62+
if RUBY_VERSION < '2.0.0'
63+
gem 'thor', '< 1.0.0'
64+
else
65+
gem 'thor', '> 1.0.0'
66+
end
67+
6068
### deps for rdoc.info
6169
group :documentation do
6270
gem 'redcarpet', :platform => :mri
6371
gem 'github-markup', :platform => :mri
6472
end
6573

66-
gem 'simplecov', '~> 0.8'
74+
group :coverage do
75+
gem 'simplecov', '~> 0.8'
76+
end
6777

6878
if RUBY_VERSION < '2.0.0' || RUBY_ENGINE == 'java'
6979
gem 'json', '< 2.0.0' # this is a dependency of simplecov

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-01-02T20:21:17+00:00 from the rspec-dev repo.
1+
# This file was generated on 2021-01-22T09:55:42+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 2021-01-02T20:21:17+00:00 from the rspec-dev repo.
2+
# This file was generated on 2021-01-22T09:55:42+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/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-01-02T20:21:17+00:00 from the rspec-dev repo.
2+
# This file was generated on 2021-01-22T09:55:42+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 2021-01-02T20:21:17+00:00 from the rspec-dev repo.
1+
# This file was generated on 2021-01-22T09:55:42+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/legacy_setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/bash
2-
# This file was generated on 2021-01-02T20:21:17+00:00 from the rspec-dev repo.
2+
# This file was generated on 2021-01-22T09:55:42+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
66
source script/functions.sh
77

8-
bundle install --standalone --binstubs
8+
bundle install --standalone --binstubs --without coverage documentation
99

1010
if [ -x ./bin/rspec ]; then
1111
echo "RSpec bin detected"

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 2021-01-02T20:21:17+00:00 from the rspec-dev repo.
1+
# This file was generated on 2021-01-22T09:55:42+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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2021-01-02T20:21:17+00:00 from the rspec-dev repo.
2+
# This file was generated on 2021-01-22T09:55:42+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
@@ -30,6 +30,7 @@ fi
3030

3131
if supports_cross_build_checks; then
3232
fold "one-by-one specs" run_specs_one_by_one
33+
export NO_COVERAGE=true
3334
run_all_spec_suites
3435
else
3536
echo "Skipping the rest of the build on non-MRI rubies"

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 2021-01-02T20:21:17+00:00 from the rspec-dev repo.
2+
# This file was generated on 2021-01-22T09:55:42+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)