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

Commit 1ecc48e

Browse files
committed
Updated travis build scripts (from rspec-dev)
1 parent 91bc14f commit 1ecc48e

9 files changed

+13
-24
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-10-21T09:35:11+01:00 from the rspec-dev repo.
1+
# This file was generated on 2019-12-18T09:08:59+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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2019-10-21T09:35:11+01:00 from the rspec-dev repo.
1+
# This file was generated on 2019-12-18T09:08:59+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
# 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-10-21T09:35:11+01:00 from the rspec-dev repo.
1+
# This file was generated on 2019-12-18T09:08:59+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 2019-10-21T09:35:11+01:00 from the rspec-dev repo.
2+
# This file was generated on 2019-12-18T09:08:59+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/functions.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# This file was generated on 2019-10-21T09:35:11+01:00 from the rspec-dev repo.
1+
# This file was generated on 2019-12-18T09:08:59+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 )"
55
source $SCRIPT_DIR/travis_functions.sh
66
source $SCRIPT_DIR/predicate_functions.sh
77

88
# If JRUBY_OPTS isn't set, use these.
9-
# see http://docs.travis-ci.com/user/ci-environment/
9+
# see https://docs.travis-ci.com/user/ci-environment/
1010
export JRUBY_OPTS=${JRUBY_OPTS:-"--server -Xcompile.invokedynamic=false"}
1111
SPECS_HAVE_RUN_FILE=specs.out
1212
MAINTENANCE_BRANCH=`cat maintenance-branch`
@@ -187,10 +187,7 @@ function run_all_spec_suites {
187187
fold "rspec-core specs" run_spec_suite_for "rspec-core"
188188
fold "rspec-expectations specs" run_spec_suite_for "rspec-expectations"
189189
fold "rspec-mocks specs" run_spec_suite_for "rspec-mocks"
190-
191-
if rspec_rails_compatible; then
192-
fold "rspec-rails specs" run_spec_suite_for "rspec-rails"
193-
fi
190+
fold "rspec-rails specs" run_spec_suite_for "rspec-rails"
194191

195192
if rspec_support_compatible; then
196193
fold "rspec-support specs" run_spec_suite_for "rspec-support"

script/predicate_functions.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2019-10-21T09:35:11+01:00 from the rspec-dev repo.
1+
# This file was generated on 2019-12-18T09:08:59+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 {
@@ -65,14 +65,6 @@ function is_ruby_23_plus {
6565
fi
6666
}
6767

68-
function rspec_rails_compatible {
69-
if is_ruby_23_plus; then
70-
return 0
71-
else
72-
return 1
73-
fi
74-
}
75-
7668
function rspec_support_compatible {
7769
if [ "$MAINTENANCE_BRANCH" != "2-99-maintenance" ] && [ "$MAINTENANCE_BRANCH" != "2-14-maintenance" ]; then
7870
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 2019-10-21T09:35:11+01:00 from the rspec-dev repo.
2+
# This file was generated on 2019-12-18T09:08:59+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 2019-10-21T09:35:11+01:00 from the rspec-dev repo.
1+
# This file was generated on 2019-12-18T09:08:59+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:

script/update_rubygems_and_install_bundler

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
2-
# This file was generated on 2019-10-21T09:35:11+01:00 from the rspec-dev repo.
2+
# This file was generated on 2019-12-18T09:08:59+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
66
source script/functions.sh
77

88
if is_ruby_23_plus; then
9-
gem update --system
10-
gem install bundler
9+
yes | gem update --system
10+
yes | gem install bundler
1111
else
1212
echo "Warning installing older versions of Rubygems / Bundler"
1313
gem update --system '2.7.8'

0 commit comments

Comments
 (0)