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

Commit b87a054

Browse files
committed
Updated travis build scripts (from rspec-dev)
1 parent 8c2ca4a commit b87a054

9 files changed

+35
-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 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: 27 additions & 3 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 {
@@ -65,8 +65,28 @@ function is_ruby_23_plus {
6565
fi
6666
}
6767

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+
76+
function is_mri_27 {
77+
if is_mri; then
78+
if ruby -e "exit(RUBY_VERSION.to_f == 2.7)"; then
79+
return 0
80+
else
81+
return 1
82+
fi
83+
else
84+
return 1
85+
fi
86+
}
87+
6888
function rspec_rails_compatible {
69-
if is_ruby_23_plus; then
89+
if is_ruby_25_plus; then
7090
return 0
7191
else
7292
return 1
@@ -89,7 +109,11 @@ function additional_specs_available {
89109
function documentation_enforced {
90110
if [ -x ./bin/yard ]; then
91111
if is_mri_2plus; then
92-
return 0
112+
if is_mri_27; then
113+
return 1
114+
else
115+
return 0
116+
fi
93117
else
94118
return 1
95119
fi

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)