Skip to content

Commit

Permalink
Merge pull request #835 from rspec/update-travis-build-scripts-2015-0…
Browse files Browse the repository at this point in the history
…8-01-for-master

Updates from rspec-dev (2015-08-01)
  • Loading branch information
cupakromer committed Aug 1, 2015
2 parents 8b16323 + 85b9f80 commit e304919
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .rubocop_rspec_base.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
# This file was generated on 2015-08-01T02:04:28-04: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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
# This file was generated on 2015-08-01T02:04:28-04:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

language: ruby
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
# This file was generated on 2015-08-01T02:04:28-04: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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
# This file was generated on 2015-08-01T02:04:28-04: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
47 changes: 46 additions & 1 deletion script/functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
# This file was generated on 2015-08-01T02:04:28-04: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 @@ -86,6 +86,51 @@ function run_spec_suite_for {
fi;
}

function check_binstubs {
echo "Checking required binstubs"

local success=0
local binstubs=""
local gems=""

if [ ! -x ./bin/rspec ]; then
binstubs="$binstubs bin/rspec"
gems="$gems rspec-core"
success=1
fi

if [ ! -x ./bin/rake ]; then
binstubs="$binstubs bin/rake"
gems="$gems rake"
success=1
fi

if [ -d features ]; then
if [ ! -x ./bin/cucumber ]; then
binstubs="$binstubs bin/cucumber"
gems="$gems cucumber"
success=1
fi
fi

if [ $success -eq 1 ]; then
echo
echo "Missing binstubs:$binstubs"
echo "Install missing binstubs using one of the following:"
echo
echo " # Create the missing binstubs"
echo " $ bundle binstubs$gems"
echo
echo " # To binstub all gems"
echo " $ bundle install --binstubs"
echo
echo " # To binstub all gems and avoid loading bundler"
echo " $ bundle install --binstubs --standalone"
fi

return $success
}

function check_documentation_coverage {
echo "bin/yard stats --list-undoc"

Expand Down
2 changes: 1 addition & 1 deletion script/predicate_functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
# This file was generated on 2015-08-01T02:04:28-04: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 Down
4 changes: 3 additions & 1 deletion script/run_build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
# This file was generated on 2015-08-01T02:04:28-04: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 All @@ -10,6 +10,8 @@ if [ -f script/custom_build_functions.sh ]; then
source script/custom_build_functions.sh
fi

fold "binstub check" check_binstubs

fold "specs" run_specs_and_record_done
fold "cukes" run_cukes

Expand Down
2 changes: 1 addition & 1 deletion script/travis_functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
# This file was generated on 2015-08-01T02:04:28-04: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 e304919

Please sign in to comment.