Skip to content

Commit c9fbfee

Browse files
committed
Merge pull request #1516 from rspec/update-travis-build-scripts-2016-01-01-for-master
Updates from rspec-dev (2016-01-01)
2 parents 8417d44 + e8202a2 commit c9fbfee

File tree

10 files changed

+40
-13
lines changed

10 files changed

+40
-13
lines changed

.rubocop_rspec_base.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2015-08-11T23:21:08+01:00 from the rspec-dev repo.
1+
# This file was generated on 2016-01-01T10:42:22+09: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
@@ -101,9 +101,9 @@ Proc:
101101
RedundantReturn:
102102
AllowMultipleReturnValues: true
103103

104-
# We have to rescue Exception in the `raise_error` matcher for it to work properly.
104+
# Exceptions should be rescued with `Support::AllExceptionsExceptOnesWeMustNotRescue`
105105
RescueException:
106-
Enabled: false
106+
Enabled: true
107107

108108
# We haven't adopted the `fail` to signal exceptions vs `raise` for re-raises convention.
109109
SignalException:

.travis.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ script: "script/run_build 2>&1"
3333

3434
rvm:
3535
- 1.8.7
36+
- 2.3.0
3637
- 2.2
3738
- 2.1
3839
- 2.0.0
@@ -53,11 +54,15 @@ env:
5354

5455
matrix:
5556
include:
56-
# Rails 5.x only supports 2.2
57+
# Rails 5.x only supports 2.2+
5758
- rvm: 2.2.2
5859
env: RAILS_VERSION=master
5960
- rvm: 2.2.2
6061
env: RAILS_VERSION=5.0.0.beta1
62+
- rvm: 2.3.0
63+
env: RAILS_VERSION=master
64+
- rvm: 2.3.0
65+
env: RAILS_VERSION=5.0.0.beta1
6166
exclude:
6267
# 3.0.x is not supported on MRI 2.0+
6368
- rvm: 2.0.0
@@ -66,6 +71,8 @@ matrix:
6671
env: RAILS_VERSION='~> 3.0.20'
6772
- rvm: 2.2
6873
env: RAILS_VERSION='~> 3.0.20'
74+
- rvm: 2.3.0
75+
env: RAILS_VERSION='~> 3.0.20'
6976
# 4.x is not supported on MRI ruby-1.8.7 or 1.9.2
7077
- rvm: 1.8.7
7178
env: RAILS_VERSION='~> 4.0.4'
@@ -91,12 +98,16 @@ matrix:
9198
env: RAILS_VERSION=4-2-stable
9299
- rvm: 1.9.2
93100
env: RAILS_VERSION=4-2-stable
94-
# MRI 2.2 is not supported on a few versions
101+
# MRI 2.2+ is not supported on a few versions
95102
- rvm: 2.2
96103
env: RAILS_VERSION='~> 3.1.12'
104+
- rvm: 2.3.0
105+
env: RAILS_VERSION='~> 3.1.12'
97106
allow_failures:
98107
- rvm: 2.2.2
99108
env: RAILS_VERSION=master
109+
- rvm: 2.3.0
110+
env: RAILS_VERSION=master
100111
fast_finish: true
101112

102113
branches:

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if RUBY_VERSION < '1.9.2'
3232
elsif RUBY_VERSION < '1.9.3'
3333
gem 'nokogiri', '1.5.2'
3434
else
35-
gem 'nokogiri', ['~> 1.5', '!= 1.6.6.3', '!= 1.6.6.4', "!= 1.6.7.1", "!= 1.6.7"]
35+
gem 'nokogiri', '1.6.7.1'
3636
end
3737

3838
if RUBY_VERSION <= '1.8.7'

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 2015-08-11T23:21:08+01:00 from the rspec-dev repo.
1+
# This file was generated on 2016-01-01T10:42:22+09: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/generate_app.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# edge branches
1616
gsub_file 'Gemfile', /^.*\bgem 'rails.*$/, ''
1717
gsub_file "Gemfile", /.*web-console.*/, ''
18+
gsub_file "Gemfile", /.*debugger.*/, ''
1819

1920
if Rails::VERSION::STRING >= '5.0.0'
2021
append_to_file('Gemfile', "gem 'rails-controller-testing', :git => 'https://github.com/rails/rails-controller-testing'")

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 2015-08-11T23:21:08+01:00 from the rspec-dev repo.
2+
# This file was generated on 2016-01-01T10:42:22+09: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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2015-08-11T23:21:08+01:00 from the rspec-dev repo.
1+
# This file was generated on 2016-01-01T10:42:22+09: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 )"
@@ -52,6 +52,11 @@ function run_cukes {
5252
# the bin/cucumber approach below. That approach is faster
5353
# (as it avoids the bundler tax), so we use it on rubies where we can.
5454
bundle exec cucumber --strict
55+
elif is_jruby; then
56+
# For some reason JRuby doesn't like our improved bundler setup
57+
RUBYOPT="-I${PWD}/../bundle -rbundler/setup" \
58+
PATH="${PWD}/bin:$PATH" \
59+
bin/cucumber --strict
5560
else
5661
# Prepare RUBYOPT for scenarios that are shelling out to ruby,
5762
# and PATH for those that are using `rspec` or `rake`.

script/predicate_functions.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2015-08-11T23:21:08+01:00 from the rspec-dev repo.
1+
# This file was generated on 2016-01-01T10:42:22+09: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 {
@@ -11,6 +11,16 @@ function is_mri {
1111
fi;
1212
}
1313

14+
function is_jruby {
15+
if ruby -e "exit(defined?(RUBY_PLATFORM) && RUBY_PLATFORM == 'java')"; then
16+
# RUBY_ENGINE only returns 'ruby' on MRI.
17+
# MRI 1.8.7 lacks the constant but all other rubies have it (including JRuby in 1.8 mode)
18+
return 0
19+
else
20+
return 1
21+
fi;
22+
}
23+
1424
function is_mri_192 {
1525
if is_mri; then
1626
if ruby -e "exit(RUBY_VERSION == '1.9.2')"; then
@@ -25,7 +35,7 @@ function is_mri_192 {
2535

2636
function is_mri_192_plus {
2737
if is_mri; then
28-
if ruby -e "exit(RUBY_VERSION.to_f > 1.9)"; then
38+
if ruby -e "exit(RUBY_VERSION.to_f > 1.8)"; then
2939
return 0
3040
else
3141
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 2015-08-11T23:21:08+01:00 from the rspec-dev repo.
2+
# This file was generated on 2016-01-01T10:42:22+09: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 2015-08-11T23:21:08+01:00 from the rspec-dev repo.
1+
# This file was generated on 2016-01-01T10:42:22+09: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:

0 commit comments

Comments
 (0)