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

Commit 119e334

Browse files
JonRowepirj
authored andcommitted
Clone rspec-rails from main
1 parent 39bacda commit 119e334

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
pull_request:
1212
branches:
1313
- '*'
14+
env:
15+
RSPEC_CI: true
1416
jobs:
1517
test:
1618
name: Ruby ${{ matrix.ruby }}

script/clone_all_rspec_repos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if is_mri; then
1212
clone_repo "rspec-core"
1313
clone_repo "rspec-expectations"
1414
clone_repo "rspec-mocks"
15-
clone_repo "rspec-rails"
15+
clone_repo "rspec-rails" "main"
1616

1717
if rspec_support_compatible; then
1818
clone_repo "rspec-support"

script/functions.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ fi
1919

2020
function clone_repo {
2121
if [ ! -d $1 ]; then # don't clone if the dir is already there
22-
travis_retry eval "git clone https://github.com/rspec/$1 --depth 1 --branch $MAINTENANCE_BRANCH"
22+
if [ -z "$2" ]; then
23+
BRANCH_TO_CLONE="$MAINTENANCE_BRANCH"
24+
else
25+
BRANCH_TO_CLONE="$2"
26+
fi
27+
28+
travis_retry eval "git clone https://github.com/rspec/$1 --depth 1 --branch $BRANCH_TO_CLONE"
2329
fi;
2430
}
2531

0 commit comments

Comments
 (0)