Skip to content

Commit 6611ba9

Browse files
JonRowepirj
authored andcommitted
Merge pull request #2244 from rspec/update-travis-build-scripts-2019-12-20-for-master
Update travis build scripts 2019 12 20 for master
1 parent 5c4a0a6 commit 6611ba9

11 files changed

+28
-16
lines changed

Gemfile-rails-dependencies

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ else
4343
if version >= '5-1-stable' && RUBY_VERSION >= "2.2"
4444
gem "puma"
4545
end
46+
47+
if version.gsub(/[^\d\.]/,'').to_f >= 6.0
48+
gem "activerecord-jdbcsqlite3-adapter", "~> 60.0.rc1", platforms: [:jruby]
49+
else
50+
gem 'activerecord-jdbcsqlite3-adapter', platforms: [:jruby]
51+
end
4652
end
4753

4854
gem "i18n", '< 0.7.0' if RUBY_VERSION < '1.9.3'

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-07-24T15:33:53+02:00 from the rspec-dev repo.
1+
# This file was generated on 2019-12-18T14:01:39+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}"

example_app_generator/spec/verify_mailer_preview_path_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def capture_exec(*ops)
2525
# Necessary to ignore warnings from Rails code base
2626
out = io.readlines.
2727
reject { |line| line =~ /warning: circular argument reference/ }.
28+
reject { |line| line =~ /Gem::Specification#rubyforge_project=/ }.
2829
join.
2930
chomp
3031
CaptureExec.new(out, $?.exitstatus)

script/after_update_travis_build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ set -e
33

44
echo "Restoring custom Travis config"
55
mv .travis.yml{.update_backup,}
6+
7+
echo "Removing Base rubocop, Rspec-Rails does not use it"
8+
rm '.rubocop_rspec_base.yml'

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-07-24T15:33:53+02:00 from the rspec-dev repo.
2+
# This file was generated on 2019-12-18T14:01:39+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: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# This file was generated on 2019-07-24T15:33:53+02:00 from the rspec-dev repo.
1+
# This file was generated on 2019-12-18T14:01:39+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,7 +187,9 @@ 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-
fold "rspec-rails specs" run_spec_suite_for "rspec-rails"
190+
if rspec_rails_compatible; then
191+
fold "rspec-rails specs" run_spec_suite_for "rspec-rails"
192+
fi
191193

192194
if rspec_support_compatible; then
193195
fold "rspec-support specs" run_spec_suite_for "rspec-support"

script/predicate_functions.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2019-07-24T15:33:53+02:00 from the rspec-dev repo.
1+
# This file was generated on 2019-12-18T14:01:39+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 {
@@ -69,16 +69,16 @@ function is_mri_2plus {
6969
fi
7070
}
7171

72-
function is_ruby_23 {
73-
if ruby -e "exit(RUBY_VERSION.to_f == 2.3)"; then
72+
function is_ruby_23_plus {
73+
if ruby -e "exit(RUBY_VERSION.to_f >= 2.3)"; then
7474
return 0
7575
else
7676
return 1
7777
fi
7878
}
7979

80-
function is_ruby_23_plus {
81-
if ruby -e "exit(RUBY_VERSION.to_f >= 2.3)"; then
80+
function rspec_rails_compatible {
81+
if is_ruby_23_plus; then
8282
return 0
8383
else
8484
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-07-24T15:33:53+02:00 from the rspec-dev repo.
2+
# This file was generated on 2019-12-18T14:01:39+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-07-24T15:33:53+02:00 from the rspec-dev repo.
1+
# This file was generated on 2019-12-18T14:01:39+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-07-24T15:33:53+02:00 from the rspec-dev repo.
2+
# This file was generated on 2019-12-18T14:01:39+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'

spec/sanity_check_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
end
2727
end
2828

29-
it "passes when libraries are required" do
29+
it "passes when libraries are required", unless: RSpec::Support::Ruby.jruby? do
3030
script = tmp_root.join("pass_sanity_check")
3131
File.open(script, "w") do |f|
3232
f.write <<-EOF.gsub(/^\s+\|/, '')

0 commit comments

Comments
 (0)