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

Commit 9ee1ad6

Browse files
authored
Merge pull request #420 from rspec/update-travis-build-scripts-2020-06-21-for-3-9-maintenance
Updates from rspec-dev (2020-06-21)
2 parents 0953e54 + 91b7ca1 commit 9ee1ad6

9 files changed

+29
-11
lines changed

.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-04-03T18:53:24+03:00 from the rspec-dev repo.
1+
# This file was generated on 2020-06-21T22:22:12+01: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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-04-03T18:53:24+03:00 from the rspec-dev repo.
1+
# This file was generated on 2020-06-21T22:22:12+01: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.

appveyor.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-04-03T18:53:24+03:00 from the rspec-dev repo.
1+
# This file was generated on 2020-06-21T22:22:12+01: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
version: "{build}"

script/clone_all_rspec_repos

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2020-04-03T18:53:24+03:00 from the rspec-dev repo.
2+
# This file was generated on 2020-06-21T22:22:12+01: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
@@ -12,7 +12,11 @@ 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+
if requires_rspec_rails_maintenance_branch; then
16+
clone_repo "rspec-rails" "4-0-maintenance"
17+
else
18+
clone_repo "rspec-rails"
19+
fi
1620

1721
if rspec_support_compatible; then
1822
clone_repo "rspec-support"

script/functions.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-04-03T18:53:24+03:00 from the rspec-dev repo.
1+
# This file was generated on 2020-06-21T22:22:12+01: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 )"
@@ -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

script/predicate_functions.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-04-03T18:53:24+03:00 from the rspec-dev repo.
1+
# This file was generated on 2020-06-21T22:22:12+01: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 {
@@ -81,6 +81,14 @@ function rspec_rails_compatible {
8181
fi
8282
}
8383

84+
function requires_rspec_rails_maintenance_branch {
85+
if [ "$MAINTENANCE_BRANCH" == "3-9-maintenance" ]; then
86+
return 0
87+
else
88+
return 1
89+
fi
90+
}
91+
8492
function rspec_support_compatible {
8593
if [ "$MAINTENANCE_BRANCH" != "2-99-maintenance" ] && [ "$MAINTENANCE_BRANCH" != "2-14-maintenance" ]; then
8694
return 0

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-04-03T18:53:24+03:00 from the rspec-dev repo.
2+
# This file was generated on 2020-06-21T22:22:12+01: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/travis_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-04-03T18:53:24+03:00 from the rspec-dev repo.
1+
# This file was generated on 2020-06-21T22:22:12+01: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/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-04-03T18:53:24+03:00 from the rspec-dev repo.
2+
# This file was generated on 2020-06-21T22:22:12+01: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)