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

Commit 12caa29

Browse files
authored
Merge pull request #2691 from rspec/update-travis-build-scripts-2020-01-23-for-master
Updates from rspec-dev (2020-01-23)
2 parents 7a264e9 + 2406b09 commit 12caa29

9 files changed

+26
-18
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 2019-12-26T17:20:33+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-01-23T22:37:16+03: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 2019-12-26T17:20:33+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-01-23T22:37:16+03: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 2019-12-26T17:20:33+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-01-23T22:37:16+03: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 2019-12-26T17:20:33+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-01-23T22:37:16+03: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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2019-12-26T17:20:33+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-01-23T22:37:16+03: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: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2019-12-26T17:20:33+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-01-23T22:37:16+03: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,22 @@ 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+
68+
function is_ruby_25_plus {
69+
if ruby -e "exit(RUBY_VERSION.to_f >= 2.5)"; then
70+
return 0
71+
else
72+
return 1
73+
fi
74+
}
75+
6076
function is_mri_27 {
6177
if is_mri; then
6278
if ruby -e "exit(RUBY_VERSION.to_f == 2.7)"; then
@@ -69,16 +85,8 @@ function is_mri_27 {
6985
fi
7086
}
7187

72-
function is_ruby_23_plus {
73-
if ruby -e "exit(RUBY_VERSION.to_f >= 2.3)"; then
74-
return 0
75-
else
76-
return 1
77-
fi
78-
}
79-
8088
function rspec_rails_compatible {
81-
if is_ruby_23_plus; then
89+
if is_ruby_25_plus; then
8290
return 0
8391
else
8492
return 1

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 2019-12-26T17:20:33+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-01-23T22:37:16+03: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 2019-12-26T17:20:33+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-01-23T22:37:16+03: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 2019-12-26T17:20:33+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-01-23T22:37:16+03: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)