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

Commit fcf9976

Browse files
committed
Updated ci build scripts (from rspec-dev)main
1 parent 8cd4364 commit fcf9976

11 files changed

+57
-12
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-12-31T00:41:35+03:00 from the rspec-dev repo.
1+
# This file was generated on 2021-01-02T12:38:45+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,26 @@ 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+
env:
83+
LEGACY_CI: true
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+
7090
windows:
7191
name: Ruby ${{ matrix.ruby }} (Windows)
7292
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-31T00:41:35+03:00 from the rspec-dev repo.
1+
# This file was generated on 2021-01-02T12:38:45+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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-12-31T00:41:35+03:00 from the rspec-dev repo.
1+
# This file was generated on 2021-01-02T12:38:45+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,8 +17,6 @@ script: "script/run_build"
1717
rvm:
1818
- 1.8.7
1919
- 1.9.2
20-
- 1.9.3
21-
- 2.0.0
2220
- ree
2321
- jruby-1.7
2422
env:

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-31T00:41:35+03:00 from the rspec-dev repo.
1+
# This file was generated on 2021-01-02T12:38:45+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-31T00:41:35+03:00 from the rspec-dev repo.
2+
# This file was generated on 2021-01-02T12:38:45+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-02T12:38:45+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-31T00:41:35+03:00 from the rspec-dev repo.
1+
# This file was generated on 2021-01-02T12:38:45+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-02T12:38:45+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-31T00:41:35+03:00 from the rspec-dev repo.
1+
# This file was generated on 2021-01-02T12:38:45+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 & 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-31T00:41:35+03:00 from the rspec-dev repo.
2+
# This file was generated on 2021-01-02T12:38:45+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,7 +30,6 @@ 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
3433
run_all_spec_suites
3534
else
3635
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 2020-12-31T00:41:35+03:00 from the rspec-dev repo.
2+
# This file was generated on 2021-01-02T12:38:45+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)