Skip to content

Commit 657a16f

Browse files
authored
Merge pull request #2244 from rspec/update-travis-build-scripts-2019-12-20-for-master
Update travis build scripts 2019 12 20 for master
2 parents 555f541 + 229953d commit 657a16f

13 files changed

+21
-40
lines changed

.travis.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,4 @@ matrix:
8585
- rvm: 2.3.8
8686
env: RAILS_VERSION='~> 5.0.0'
8787

88-
# Rails 4.2 Builds >= 1.9.3
89-
- rvm: 2.5.5
90-
env: RAILS_VERSION='~> 4.2.0'
91-
- rvm: 2.4.6
92-
env: RAILS_VERSION='~> 4.2.0'
93-
- rvm: 2.4.6
94-
env: RAILS_VERSION='~> 4.2.0'
95-
- rvm: 2.3.8
96-
env: RAILS_VERSION='~> 4.2.0'
97-
- rvm: 2.3.8
98-
env: RAILS_VERSION='~> 4.2.0'
99-
10088
fast_finish: true

Gemfile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,12 @@ else
4242
gem 'sqlite3', '~> 1.3.6', platforms: [:ruby]
4343
end
4444

45-
if RUBY_VERSION >= '2.4.0'
46-
gem 'json', '>= 2.0.2'
47-
end
48-
4945
gem 'ffi', '~> 1.9.25'
5046

5147
gem 'rake', '~> 12'
5248

5349
gem 'mime-types', "~> 3"
5450

55-
# Version 5.12 of minitest requires Ruby 2.4
56-
if RUBY_VERSION < '2.4.0'
57-
gem 'minitest', '< 5.12.0'
58-
end
59-
6051
gem 'capybara', '~> 2.13', require: false
6152

6253
if MAJOR < 6

Gemfile-rails-dependencies

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ else
3333
gem "puma"
3434
end
3535

36-
if RUBY_VERSION < "2.5"
37-
gem "sprockets", "~> 3.0"
38-
end
39-
4036
if version.gsub(/[^\d\.]/,'').to_f >= 6.0
4137
gem "activerecord-jdbcsqlite3-adapter", "~> 60.0.rc1", platforms: [:jruby]
4238
else

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 {
@@ -57,16 +57,16 @@ function is_mri_2plus {
5757
fi
5858
}
5959

60-
function is_ruby_23 {
61-
if ruby -e "exit(RUBY_VERSION.to_f == 2.3)"; then
60+
function is_ruby_23_plus {
61+
if ruby -e "exit(RUBY_VERSION.to_f >= 2.3)"; then
6262
return 0
6363
else
6464
return 1
6565
fi
6666
}
6767

68-
function is_ruby_23_plus {
69-
if ruby -e "exit(RUBY_VERSION.to_f >= 2.3)"; then
68+
function rspec_rails_compatible {
69+
if is_ruby_23_plus; then
7070
return 0
7171
else
7272
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: 2 additions & 2 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
99
yes | gem update --system
10-
gem install bundler
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
@@ -34,7 +34,7 @@ def with_clean_env
3434
end
3535
end
3636

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

0 commit comments

Comments
 (0)