Skip to content

Commit

Permalink
Merge pull request #1404 from rspec/update-ci-build-scripts-2021-01-2…
Browse files Browse the repository at this point in the history
…2-for-3-10-maintenance

Updates from rspec-dev (2021-01-22)
  • Loading branch information
JonRowe committed Jan 22, 2021
2 parents a3fcd85 + 394fa2f commit d4276f6
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 18 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2021-01-08T09:17:13+00:00 from the rspec-dev repo.
# This file was generated on 2021-01-22T11:27:18+00:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

name: RSpec CI
Expand Down Expand Up @@ -70,7 +70,9 @@ jobs:
legacy:
name: Legacy Ruby Builds (${{ matrix.container.version }})
runs-on: ubuntu-20.04
container: ${{ matrix.container.tag }}
container:
image: ${{ matrix.container.tag }}
options: ${{ matrix.container.options || '--add-host github-complains-if-this-is-empty.com:127.0.0.1' }}
strategy:
fail-fast: false
matrix:
Expand All @@ -79,13 +81,25 @@ jobs:
tag: rspec/ci:2.0.0
- version: "1.9.3"
tag: rspec/ci:1.9.3
- version: "1.9.2"
tag: rspec/ci:1.9.2
options: "--add-host rubygems.org:151.101.0.70 --add-host api.rubygems.org:151.101.0.70"
- version: "REE"
tag: rspec/ci:ree
options: "--add-host rubygems.org:151.101.0.70 --add-host api.rubygems.org:151.101.0.70"
- version: "JRuby 1.7"
tag: rspec/ci:jruby-1.7
- version: "JRuby 1.7 1.8 mode"
tag: rspec/ci:jruby-1.7
jruby_opts: '--dev --1.8'
pre: gem uninstall jruby-openssl
options: "--add-host rubygems.org:151.101.0.70 --add-host api.rubygems.org:151.101.0.70"
env:
LEGACY_CI: true
JRUBY_OPTS: ${{ matrix.container.jruby_opts || '--dev' }}
steps:
- uses: actions/checkout@v2
- run: ${{ matrix.container.pre }}
- run: script/legacy_setup.sh
- run: bundle exec bin/rspec
- run: bundle exec script/cucumber.sh
Expand Down
2 changes: 1 addition & 1 deletion .rubocop_rspec_base.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2021-01-08T09:17:13+00:00 from the rspec-dev repo.
# This file was generated on 2021-01-22T11:27:18+00:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

# This file contains defaults for RSpec projects. Individual projects
Expand Down
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2021-01-08T09:17:13+00:00 from the rspec-dev repo.
# This file was generated on 2021-01-22T11:27:18+00:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

# In order to install old Rubies, we need to use old Ubuntu distibution.
Expand All @@ -16,12 +16,7 @@ bundler_args: "--binstubs --standalone --without documentation --path ../bundle"
script: "script/run_build"
rvm:
- 1.8.7
- 1.9.2
- ree
matrix:
include:
- rvm: jruby-1.7
env: JRUBY_OPTS='--dev --1.8'
fast_finish: true
branches:
only:
Expand Down
2 changes: 1 addition & 1 deletion script/ci_functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2021-01-08T09:17:13+00:00 from the rspec-dev repo.
# This file was generated on 2021-01-22T11:27:18+00:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

# Taken from:
Expand Down
2 changes: 1 addition & 1 deletion script/clone_all_rspec_repos
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2021-01-08T09:17:13+00:00 from the rspec-dev repo.
# This file was generated on 2021-01-22T11:27:18+00:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

set -e
Expand Down
2 changes: 1 addition & 1 deletion script/cucumber.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2021-01-08T09:17:13+00:00 from the rspec-dev repo.
# This file was generated on 2021-01-22T11:27:18+00:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

set -e
Expand Down
2 changes: 1 addition & 1 deletion script/functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2021-01-08T09:17:13+00:00 from the rspec-dev repo.
# This file was generated on 2021-01-22T11:27:18+00:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Expand Down
4 changes: 2 additions & 2 deletions script/legacy_setup.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash
# This file was generated on 2021-01-08T09:17:13+00:00 from the rspec-dev repo.
# This file was generated on 2021-01-22T11:27:18+00:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

set -e
source script/functions.sh

bundle install --standalone --binstubs
bundle install --standalone --binstubs --without coverage documentation

if [ -x ./bin/rspec ]; then
echo "RSpec bin detected"
Expand Down
2 changes: 1 addition & 1 deletion script/predicate_functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2021-01-08T09:17:13+00:00 from the rspec-dev repo.
# This file was generated on 2021-01-22T11:27:18+00:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

function is_mri {
Expand Down
3 changes: 2 additions & 1 deletion script/run_build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2021-01-08T09:17:13+00:00 from the rspec-dev repo.
# This file was generated on 2021-01-22T11:27:18+00:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

set -e
Expand Down Expand Up @@ -30,6 +30,7 @@ fi

if supports_cross_build_checks; then
fold "one-by-one specs" run_specs_one_by_one
export NO_COVERAGE=true
run_all_spec_suites
else
echo "Skipping the rest of the build on non-MRI rubies"
Expand Down
2 changes: 1 addition & 1 deletion script/update_rubygems_and_install_bundler
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2021-01-08T09:17:13+00:00 from the rspec-dev repo.
# This file was generated on 2021-01-22T11:27:18+00:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

set -e
Expand Down

0 comments on commit d4276f6

Please sign in to comment.