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

Commit e752392

Browse files
authored
Merge pull request #2293 from rspec/update-travis-build-scripts-2016-07-14-for-master
Updates from rspec-dev (2016-07-14)
2 parents a105805 + 5094dab commit e752392

14 files changed

+24
-14
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 2016-06-14T22:22:14-07:00 from the rspec-dev repo.
1+
# This file was generated on 2016-07-14T09:50:14+10: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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2016-06-14T22:22:14-07:00 from the rspec-dev repo.
1+
# This file was generated on 2016-07-14T09:50:14+10: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
@@ -22,6 +22,7 @@ rvm:
2222
- 2.1
2323
- 2.2.5
2424
- 2.3.1
25+
- 2.4.0-preview1
2526
- ruby-head
2627
- ree
2728
- rbx
@@ -35,11 +36,14 @@ matrix:
3536
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
3637
- rvm: jruby
3738
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
39+
- rvm: jruby-9.1.2.0
40+
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
3841
allow_failures:
3942
- rvm: jruby-head
4043
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
4144
- rvm: ruby-head
4245
- rvm: rbx
46+
- rvm: 2.4.0-preview1
4347
fast_finish: true
4448
branches:
4549
only:

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 2016-06-14T22:22:14-07:00 from the rspec-dev repo.
1+
# This file was generated on 2016-07-14T09:50:14+10: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/configuration/backtrace_exclusion_patterns.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ Feature: Excluding lines from the backtrace
123123
And the output should contain "lib/rspec/expectations"
124124
And the output should contain "lib/rspec/core"
125125
126+
@broken-on-jruby-9000
126127
Scenario: Using `filter_gems_from_backtrace` to filter the named gem
127128
Given a vendored gem named "my_gem" containing a file named "lib/my_gem.rb" with:
128129
"""ruby

features/expectation_framework_integration/configure_expectation_framework.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Feature: configure expectation framework
7272
"""
7373
And the output should contain "3 examples, 1 failure"
7474

75+
@broken-on-jruby-9000
7576
Scenario: Configure minitest assertions
7677
Given rspec-expectations is not installed
7778
And a file named "example_spec.rb" with:

features/support/jruby.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Around "@broken-on-jruby-9000" do |scenario, block|
2+
require 'rspec/support/ruby_features'
3+
block.call unless RSpec::Support::Ruby.jruby_9000?
4+
end

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 2016-06-14T22:22:14-07:00 from the rspec-dev repo.
2+
# This file was generated on 2016-07-14T09:50:14+10: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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2016-06-14T22:22:14-07:00 from the rspec-dev repo.
1+
# This file was generated on 2016-07-14T09:50:14+10: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 )"
@@ -28,7 +28,7 @@ function run_specs_and_record_done {
2828

2929
# rspec-core needs to run with a special script that loads simplecov first,
3030
# so that it can instrument rspec-core's code before rspec-core has been loaded.
31-
if [ -f script/rspec_with_simplecov ]; then
31+
if [ -f script/rspec_with_simplecov ] && is_mri; then
3232
rspec_bin=script/rspec_with_simplecov
3333
fi;
3434

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 2016-06-14T22:22:14-07:00 from the rspec-dev repo.
1+
# This file was generated on 2016-07-14T09:50:14+10: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 2016-06-14T22:22:14-07:00 from the rspec-dev repo.
2+
# This file was generated on 2016-07-14T09:50:14+10: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 2016-06-14T22:22:14-07:00 from the rspec-dev repo.
1+
# This file was generated on 2016-07-14T09:50:14+10: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/integration/failed_line_detection_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
expect(last_cmd_stdout).to include("expect(1).to eq(2)")
4040
end
4141

42-
it "finds the direct source of failure in any lib, app or spec file, and allows the user to configure what is considered a project source dir" do
42+
it "finds the direct source of failure in any lib, app or spec file, and allows the user to configure what is considered a project source dir", :pending => RSpec::Support::Ruby.jruby_9000? do
4343
write_file "lib/lib_mod.rb", "
4444
module LibMod
4545
def self.trigger_failure
@@ -101,7 +101,7 @@ def self.trigger_failure
101101
and exclude("raise 'AppMod failure'")
102102
end
103103

104-
it "finds the callsite of a method provided by a gem that fails (rather than the line in the gem)" do
104+
it "finds the callsite of a method provided by a gem that fails (rather than the line in the gem)", :pending => RSpec::Support::Ruby.jruby_9000? do
105105
write_file "vendor/gems/assertions/lib/assertions.rb", "
106106
module Assertions
107107
AssertionFailed = Class.new(StandardError)
@@ -135,7 +135,7 @@ def assert(value, msg)
135135
and exclude("raise(AssertionFailed, msg)")
136136
end
137137

138-
it "falls back to finding a line in a gem when there are no backtrace lines in the app, lib or spec directories" do
138+
it "falls back to finding a line in a gem when there are no backtrace lines in the app, lib or spec directories", :pending => RSpec::Support::Ruby.jruby_9000? do
139139
write_file "vendor/gems/before_failure/lib/before_failure.rb", "
140140
RSpec.configure do |c|
141141
c.before { raise 'before failure!' }

spec/rspec/core/example_group_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ def define_and_run_group(define_outer_example = false)
10301030
expect(self.group.examples.first.execution_result.pending_message).to eq(RSpec::Core::Pending::NO_REASON_GIVEN)
10311031
end
10321032

1033-
it 'sets the backtrace to the example definition so it can be located by the user' do
1033+
it 'sets the backtrace to the example definition so it can be located by the user', :pending => RSpec::Support::Ruby.jruby_9000? do
10341034
file = RSpec::Core::Metadata.relative_path(__FILE__)
10351035
expected = [file, __LINE__ + 2].map(&:to_s)
10361036
group = RSpec.describe do

spec/rspec/core/example_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def expect_pending_result(example)
650650
expect(blah).to be(:success)
651651
end
652652

653-
it 'sets the backtrace to the example definition so it can be located by the user' do
653+
it 'sets the backtrace to the example definition so it can be located by the user', :pending => RSpec::Support::Ruby.jruby_9000? do
654654
file = RSpec::Core::Metadata.relative_path(__FILE__)
655655
expected = [file, __LINE__ + 2].map(&:to_s)
656656
group = RSpec.describe do

0 commit comments

Comments
 (0)