Skip to content

Commit e8eaf85

Browse files
authored
Merge pull request #282 from rspec/legacy-builds-3-10
Legacy builds for 3-10-maintenance
2 parents f08ebf6 + 6778c00 commit e8eaf85

File tree

4 files changed

+45
-5
lines changed

4 files changed

+45
-5
lines changed

ci/.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,29 @@ jobs:
6464
- run: bundle install --binstubs --standalone
6565
- run: script/run_build
6666

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

ci/.travis.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@ script: "script/run_build"
1414
rvm:
1515
- 1.8.7
1616
- 1.9.2
17-
- 1.9.3
18-
- 2.0.0
1917
- ree
20-
- jruby-1.7
21-
env:
22-
- JRUBY_OPTS='--dev'
2318
matrix:
2419
include:
2520
- rvm: jruby-1.7

ci/script/cucumber.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -e
3+
source script/functions.sh
4+
5+
run_cukes

ci/script/legacy_setup.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
set -e
3+
source script/functions.sh
4+
5+
bundle install --standalone --binstubs
6+
7+
if [ -x ./bin/rspec ]; then
8+
echo "RSpec bin detected"
9+
else
10+
if [ -x ./exe/rspec ]; then
11+
cp ./exe/rspec ./bin/rspec
12+
echo "RSpec restored from exe"
13+
else
14+
echo "No RSpec bin available"
15+
exit 1
16+
fi
17+
fi

0 commit comments

Comments
 (0)