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

Commit e0b5e0e

Browse files
committed
Updated ci build scripts (from rspec-dev)main
1 parent e3bda9d commit e0b5e0e

11 files changed

+39
-14
lines changed

.github/workflows/ci.yml

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2021-07-15T10:45:52+01:00 from the rspec-dev repo.
1+
# This file was generated on 2022-01-10T22:10:26+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
@@ -16,12 +16,27 @@ env:
1616
# This tells rspec-rails what branch to run in ci
1717
RSPEC_VERSION: '= 3.11.0.pre'
1818
jobs:
19+
rubocop:
20+
name: Rubocop
21+
runs-on: 'ubuntu-20.04'
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: ruby/setup-ruby@v1
25+
with:
26+
ruby-version: '3.0'
27+
- run: script/update_rubygems_and_install_bundler
28+
- run: script/clone_all_rspec_repos
29+
- run: bundle install --standalone
30+
- run: bundle binstubs --all
31+
- run: script/run_rubocop
32+
1933
test:
2034
name: Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }}
2135
runs-on: ${{ matrix.os || 'ubuntu-20.04' }}
2236
strategy:
2337
matrix:
2438
ruby:
39+
- '3.1'
2540
- '3.0'
2641
- 2.7
2742
- 2.6

.rubocop_rspec_base.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2021-07-15T10:45:52+01:00 from the rspec-dev repo.
1+
# This file was generated on 2022-01-10T22:10:26+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

script/ci_functions.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2021-07-15T10:45:52+01:00 from the rspec-dev repo.
1+
# This file was generated on 2022-01-10T22:10:26+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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2021-07-15T10:45:52+01:00 from the rspec-dev repo.
2+
# This file was generated on 2022-01-10T22:10:26+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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2021-07-15T10:45:52+01:00 from the rspec-dev repo.
2+
# This file was generated on 2022-01-10T22:10:26+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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2021-07-15T10:45:52+01:00 from the rspec-dev repo.
1+
# This file was generated on 2022-01-10T22:10:26+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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2021-07-15T10:45:52+01:00 from the rspec-dev repo.
2+
# This file was generated on 2022-01-10T22:10:26+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/predicate_functions.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2021-07-15T10:45:52+01:00 from the rspec-dev repo.
1+
# This file was generated on 2022-01-10T22:10:26+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

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2021-07-15T10:45:52+01:00 from the rspec-dev repo.
2+
# This file was generated on 2022-01-10T22:10:26+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
@@ -24,10 +24,6 @@ if documentation_enforced; then
2424
fold "doc check" check_documentation_coverage
2525
fi
2626

27-
if style_and_lint_enforced; then
28-
fold "rubocop" check_style_and_lint
29-
fi
30-
3127
if supports_cross_build_checks; then
3228
fold "one-by-one specs" run_specs_one_by_one
3329
export NO_COVERAGE=true

script/run_rubocop

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
# This file was generated on 2022-01-10T22:10:26+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+
# Allow repos to override the default functions and add their own
9+
if [ -f script/custom_build_functions.sh ]; then
10+
source script/custom_build_functions.sh
11+
fi
12+
13+
14+
fold "rubocop" check_style_and_lint

script/update_rubygems_and_install_bundler

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2021-07-15T10:45:52+01:00 from the rspec-dev repo.
2+
# This file was generated on 2022-01-10T22:10:26+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)