Skip to content

Commit

Permalink
Updated travis build scripts (from rspec-dev)
Browse files Browse the repository at this point in the history
  • Loading branch information
yujinakayama committed Jan 1, 2016
1 parent 8417d44 commit 491a192
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .rubocop_rspec_base.yml
@@ -1,4 +1,4 @@
# This file was generated on 2015-08-11T23:21:08+01:00 from the rspec-dev repo.
# This file was generated on 2016-01-01T10:42:22+09:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

# This file contains defaults for RSpec projects. Individual projects
Expand Down Expand Up @@ -101,9 +101,9 @@ Proc:
RedundantReturn:
AllowMultipleReturnValues: true

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

# We haven't adopted the `fail` to signal exceptions vs `raise` for re-raises convention.
SignalException:
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
@@ -1,4 +1,4 @@
# This file was generated on 2015-08-11T23:21:08+01:00 from the rspec-dev repo.
# This file was generated on 2016-01-01T10:42:22+09:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

version: "{build}"
Expand Down
2 changes: 1 addition & 1 deletion script/clone_all_rspec_repos
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2015-08-11T23:21:08+01:00 from the rspec-dev repo.
# This file was generated on 2016-01-01T10:42:22+09:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

set -e
Expand Down
7 changes: 6 additions & 1 deletion script/functions.sh
@@ -1,4 +1,4 @@
# This file was generated on 2015-08-11T23:21:08+01:00 from the rspec-dev repo.
# This file was generated on 2016-01-01T10:42:22+09:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Expand Down Expand Up @@ -52,6 +52,11 @@ function run_cukes {
# the bin/cucumber approach below. That approach is faster
# (as it avoids the bundler tax), so we use it on rubies where we can.
bundle exec cucumber --strict
elif is_jruby; then
# For some reason JRuby doesn't like our improved bundler setup
RUBYOPT="-I${PWD}/../bundle -rbundler/setup" \
PATH="${PWD}/bin:$PATH" \
bin/cucumber --strict
else
# Prepare RUBYOPT for scenarios that are shelling out to ruby,
# and PATH for those that are using `rspec` or `rake`.
Expand Down
14 changes: 12 additions & 2 deletions script/predicate_functions.sh
@@ -1,4 +1,4 @@
# This file was generated on 2015-08-11T23:21:08+01:00 from the rspec-dev repo.
# This file was generated on 2016-01-01T10:42:22+09:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

function is_mri {
Expand All @@ -11,6 +11,16 @@ function is_mri {
fi;
}

function is_jruby {
if ruby -e "exit(defined?(RUBY_PLATFORM) && RUBY_PLATFORM == 'java')"; then
# RUBY_ENGINE only returns 'ruby' on MRI.
# MRI 1.8.7 lacks the constant but all other rubies have it (including JRuby in 1.8 mode)
return 0
else
return 1
fi;
}

function is_mri_192 {
if is_mri; then
if ruby -e "exit(RUBY_VERSION == '1.9.2')"; then
Expand All @@ -25,7 +35,7 @@ function is_mri_192 {

function is_mri_192_plus {
if is_mri; then
if ruby -e "exit(RUBY_VERSION.to_f > 1.9)"; then
if ruby -e "exit(RUBY_VERSION.to_f > 1.8)"; then
return 0
else
return 1
Expand Down
2 changes: 1 addition & 1 deletion script/run_build
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2015-08-11T23:21:08+01:00 from the rspec-dev repo.
# This file was generated on 2016-01-01T10:42:22+09:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

set -e
Expand Down
2 changes: 1 addition & 1 deletion script/travis_functions.sh
@@ -1,4 +1,4 @@
# This file was generated on 2015-08-11T23:21:08+01:00 from the rspec-dev repo.
# This file was generated on 2016-01-01T10:42:22+09:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

# Taken from:
Expand Down

0 comments on commit 491a192

Please sign in to comment.