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

Commit c4d7809

Browse files
authored
Merge pull request #1399 from rspec/update-ci-build-scripts-2021-01-08-for-3-10-maintenance
Updates from rspec-dev (2021-01-08)
2 parents 2e1237e + 5d85c37 commit c4d7809

11 files changed

+60
-14
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-12-27T14:29:50+00:00 from the rspec-dev repo.
1+
# This file was generated on 2021-01-08T09:17:13+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
@@ -67,6 +67,29 @@ jobs:
6767
- run: bundle install --binstubs --standalone
6868
- run: script/run_build
6969

70+
legacy:
71+
name: Legacy Ruby Builds (${{ matrix.container.version }})
72+
runs-on: ubuntu-20.04
73+
container: ${{ matrix.container.tag }}
74+
strategy:
75+
fail-fast: false
76+
matrix:
77+
container:
78+
- version: "2.0"
79+
tag: rspec/ci:2.0.0
80+
- version: "1.9.3"
81+
tag: rspec/ci:1.9.3
82+
- version: "JRuby 1.7"
83+
tag: rspec/ci:jruby-1.7
84+
env:
85+
LEGACY_CI: true
86+
JRUBY_OPTS: ${{ matrix.container.jruby_opts || '--dev' }}
87+
steps:
88+
- uses: actions/checkout@v2
89+
- run: script/legacy_setup.sh
90+
- run: bundle exec bin/rspec
91+
- run: bundle exec script/cucumber.sh
92+
7093
windows:
7194
name: Ruby ${{ matrix.ruby }} (Windows)
7295
runs-on: windows-latest

.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-27T14:29:50+00:00 from the rspec-dev repo.
1+
# This file was generated on 2021-01-08T09:17:13+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 2020-12-27T14:29:50+00:00 from the rspec-dev repo.
1+
# This file was generated on 2021-01-08T09:17:13+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.
@@ -17,12 +17,7 @@ script: "script/run_build"
1717
rvm:
1818
- 1.8.7
1919
- 1.9.2
20-
- 1.9.3
21-
- 2.0.0
2220
- ree
23-
- jruby-1.7
24-
env:
25-
- JRUBY_OPTS='--dev'
2621
matrix:
2722
include:
2823
- rvm: jruby-1.7

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-27T14:29:50+00:00 from the rspec-dev repo.
1+
# This file was generated on 2021-01-08T09:17:13+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-27T14:29:50+00:00 from the rspec-dev repo.
2+
# This file was generated on 2021-01-08T09:17:13+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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
# This file was generated on 2021-01-08T09:17:13+00:00 from the rspec-dev repo.
3+
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
4+
5+
set -e
6+
source script/functions.sh
7+
8+
run_cukes

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-27T14:29:50+00:00 from the rspec-dev repo.
1+
# This file was generated on 2021-01-08T09:17:13+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: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
# This file was generated on 2021-01-08T09:17:13+00:00 from the rspec-dev repo.
3+
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
4+
5+
set -e
6+
source script/functions.sh
7+
8+
bundle install --standalone --binstubs
9+
10+
if [ -x ./bin/rspec ]; then
11+
echo "RSpec bin detected"
12+
else
13+
if [ -x ./exe/rspec ]; then
14+
cp ./exe/rspec ./bin/rspec
15+
echo "RSpec restored from exe"
16+
else
17+
echo "No RSpec bin available"
18+
exit 1
19+
fi
20+
fi

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-12-27T14:29:50+00:00 from the rspec-dev repo.
1+
# This file was generated on 2021-01-08T09:17:13+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-12-27T14:29:50+00:00 from the rspec-dev repo.
2+
# This file was generated on 2021-01-08T09:17:13+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-12-27T14:29:50+00:00 from the rspec-dev repo.
2+
# This file was generated on 2021-01-08T09:17:13+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)