Skip to content

Commit 72d00ef

Browse files
authored
Merge pull request #2061 from rspec/update-travis-build-scripts-2019-01-03-for-master
Updates from rspec-dev (2019-01-03)
2 parents fe43309 + b64cd41 commit 72d00ef

10 files changed

+51
-9
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 2018-12-30T16:45:57+00:00 from the rspec-dev repo.
1+
# This file was generated on 2019-01-03T20:34:23+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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ cache: bundler
2323
bundler_args: "--binstubs --path ../bundle --retry=3 --jobs=3"
2424

2525
before_install:
26-
- gem update --system 2.7.8
27-
- gem install bundler
26+
- script/update_rubygems_and_install_bundler
27+
- script/downgrade_bundler_on_old_rails
2828
- script/clone_all_rspec_repos
2929

3030
before_script:

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 2018-12-30T16:45:57+00:00 from the rspec-dev repo.
1+
# This file was generated on 2019-01-03T20:34:23+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
version: "{build}"

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 2018-12-30T16:45:57+00:00 from the rspec-dev repo.
2+
# This file was generated on 2019-01-03T20:34:23+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/downgrade_bundler_on_old_rails

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
# This file was generated on 2019-01-03T20:34:23+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+
if ruby -e "exit(ENV['RAILS_VERSION'].to_f < 5)"; then
9+
# On Rails versions less than 5, Bundler 2.0 is not supported
10+
echo "Warning dowgrading to older version of Bundler"
11+
gem uninstall -aIx bundler
12+
13+
# this only works on Ruby 2.3 which is luckily the version we need to fix
14+
if is_ruby_23_plus; then
15+
rvm @global do gem uninstall -aIx bundler
16+
fi
17+
18+
gem install bundler -v '1.17.3'
19+
fi

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 2018-12-30T16:45:57+00:00 from the rspec-dev repo.
1+
# This file was generated on 2019-01-03T20:34:23+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/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 2018-12-30T16:45:57+00:00 from the rspec-dev repo.
1+
# This file was generated on 2019-01-03T20:34:23+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 {
@@ -57,6 +57,14 @@ function is_mri_2plus {
5757
fi
5858
}
5959

60+
function is_ruby_23_plus {
61+
if ruby -e "exit(RUBY_VERSION.to_f >= 2.3)"; then
62+
return 0
63+
else
64+
return 1
65+
fi
66+
}
67+
6068
function rspec_support_compatible {
6169
if [ "$MAINTENANCE_BRANCH" != "2-99-maintenance" ] && [ "$MAINTENANCE_BRANCH" != "2-14-maintenance" ]; then
6270
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 2018-12-30T16:45:57+00:00 from the rspec-dev repo.
2+
# This file was generated on 2019-01-03T20:34:23+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/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 2018-12-30T16:45:57+00:00 from the rspec-dev repo.
1+
# This file was generated on 2019-01-03T20:34:23+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:
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
# This file was generated on 2019-01-03T20:34:23+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+
if is_ruby_23_plus; then
9+
gem update --system
10+
gem install bundler
11+
else
12+
echo "Warning installing older versions of Rubygems / Bundler"
13+
gem update --system '2.7.8'
14+
gem install bundler -v '1.17.3'
15+
fi

0 commit comments

Comments
 (0)