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

Commit c0f7d2c

Browse files
authored
Merge pull request #2447 from rspec/update-travis-build-scripts-2017-07-15-for-master
Updates from rspec-dev (2017-07-15)
2 parents a8ca431 + 60ad63c commit c0f7d2c

File tree

10 files changed

+34
-23
lines changed

10 files changed

+34
-23
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 2017-04-10T21:23:36+10:00 from the rspec-dev repo.
1+
# This file was generated on 2017-07-15T20:27:04+07: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: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2017-04-10T21:23:36+10:00 from the rspec-dev repo.
1+
# This file was generated on 2017-07-15T20:27:04+07: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
language: ruby
@@ -26,25 +26,18 @@ rvm:
2626
- ruby-head
2727
- ree
2828
- rbx
29+
- jruby
30+
- jruby-head
31+
- jruby-18mode
32+
- jruby-9.1.2.0
2933
matrix:
30-
include:
31-
- rvm: jruby
32-
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false -Xcompat.version=2.0'
33-
- rvm: jruby-head
34-
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
35-
- rvm: jruby-18mode
36-
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
37-
- rvm: jruby
38-
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
39-
- rvm: jruby-9.1.2.0
40-
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
4134
allow_failures:
4235
- rvm: jruby-head
43-
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
4436
- rvm: ruby-head
4537
- rvm: rbx
46-
- rvm: 2.4.0-preview1
4738
fast_finish: true
39+
env:
40+
- JRUBY_OPTS='--dev'
4841
branches:
4942
only:
5043
- master

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 2017-04-10T21:23:36+10:00 from the rspec-dev repo.
1+
# This file was generated on 2017-07-15T20:27:04+07: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}"

features/step_definitions/additional_cli_steps.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@
174174

175175
Then(/^bisect should (succeed|fail) with output like:$/) do |succeed, expected_output|
176176
last_process = only_processes.last
177-
expect(last_exit_status).to eq(succeed == "succeed" ? 0 : 1)
177+
expected_status = succeed == "succeed" ? 0 : 1
178+
expect(last_exit_status).to eq(expected_status),
179+
"Expected exit status of #{expected_status} but got #{last_exit_status} \n\n" \
180+
"Output:\n\n#{last_process.stdout}"
178181

179182
expected = normalize_durations(expected_output)
180183
actual = normalize_durations(last_process.stdout)

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 2017-04-10T21:23:36+10:00 from the rspec-dev repo.
2+
# This file was generated on 2017-07-15T20:27:04+07: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 2017-04-10T21:23:36+10:00 from the rspec-dev repo.
1+
# This file was generated on 2017-07-15T20:27:04+07: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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2017-04-10T21:23:36+10:00 from the rspec-dev repo.
1+
# This file was generated on 2017-07-15T20:27:04+07: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 {

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 2017-04-10T21:23:36+10:00 from the rspec-dev repo.
2+
# This file was generated on 2017-07-15T20:27:04+07: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 2017-04-10T21:23:36+10:00 from the rspec-dev repo.
1+
# This file was generated on 2017-07-15T20:27:04+07: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:

spec/rspec/core_spec.rb

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@
1313
# JRuby appears to not respect `--disable=gem` so rubygems also gets loaded.
1414
allowed_loaded_features << /rubygems/ if RSpec::Support::Ruby.jruby?
1515

16+
disable_autorun_code =
17+
if RSpec::Support::OS.windows?
18+
# On Windows, the "redefine autorun" approach results in a different
19+
# exit status for a reason I don't understand, so we just disable
20+
# autorun outright.
21+
'RSpec::Core::Runner.disable_autorun!'
22+
else
23+
# On JRuby, the `disable_autorun!` approach leads to a stderr warning
24+
# related to a deprecation emited when `rspec/core/autorun` gets loaded,
25+
# because of `caller_filter` issues, so we redefine the autorun method
26+
# instead. That works fine on all Rubies when we're not on Windows as
27+
# well.
28+
'RSpec::Core::Runner.instance_exec { undef :autorun; def autorun; end }'
29+
end
30+
1631
it_behaves_like 'library wide checks', 'rspec-core',
1732
:preamble_for_lib => [
1833
# rspec-core loads a number of external libraries. We don't want them loaded
@@ -51,7 +66,7 @@
5166
# Many files assume this has already been loaded and will have errors if it has not.
5267
'require "rspec/core"',
5368
# Prevent rspec/autorun from trying to run RSpec.
54-
'RSpec::Core::Runner.disable_autorun!'
69+
disable_autorun_code
5570
], :skip_spec_files => %r{/fake_libs/}, :allowed_loaded_feature_regexps => allowed_loaded_features do
5671
if RUBY_VERSION == '1.8.7'
5772
before(:example, :description => /(issues no warnings when the spec files are loaded|stdlibs)/) do

0 commit comments

Comments
 (0)