Skip to content

Commit

Permalink
Merge 60166eb into 60f8dd7
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Phippen committed Oct 29, 2013
2 parents 60f8dd7 + 60166eb commit e75a50c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions maintenence-branch
@@ -0,0 +1 @@
master
35 changes: 35 additions & 0 deletions script/test_all
Expand Up @@ -38,3 +38,38 @@ fi
# rspec version if we're not running with bundler.
bundle exec cucumber --strict


# Test against other RSpec gems.

# Delete the directory for idempotency when running locally
export TMPDIR="/tmp"
rm -rf $TMPDIR/rspec-ci
mkdir $TMPDIR/rspec-ci

# Get the branch to test against
MAINTENENCE_BRANCH=`cat maintenence-branch`

cp -r "./" "$TMPDIR/rspec-ci/rspec-mocks"

#Change to the CI directory
cd $TMPDIR/rspec-ci

# The steps to test the gems are the same, this function does them.
function test_gem {
git clone git://github.com/rspec/rspec-$1
cd rspec-$1
pwd
git fetch origin
git checkout $MAINTENENCE_BRANCH
git branch
bundle_flags=`cat .travis.yml | grep bundler_args | tr -d '"' | grep -o " .*"`

bundle install $bundle_flags
bundle exec rspec -b
cd ../
rm -rf rspec-$1
}

# Test rspec-core and rspec-expectations.
test_gem "core"
test_gem "expectations"

0 comments on commit e75a50c

Please sign in to comment.