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

Commit

Permalink
Merge pull request #576 from rspec/update-travis-build-scripts-2014-0…
Browse files Browse the repository at this point in the history
…2-12-for-2-99-maintenance

Updates from rspec-dev (2014-02-12)
  • Loading branch information
JonRowe committed Feb 12, 2014
2 parents 287f3fa + 0d3bc1e commit 6380add
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2014-02-10T09:51:50-08:00 from the rspec-dev repo.
# This file was generated on 2014-02-12T09:27:50+11:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

before_install: "script/clone_all_rspec_repos"
Expand All @@ -18,7 +18,6 @@ rvm:
- rbx
matrix:
allow_failures:
- rvm: jruby-18mode
- rvm: jruby-head
- rvm: ruby-head
- rvm: rbx
Expand Down
4 changes: 2 additions & 2 deletions 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 2014-02-10T09:51:50-08:00 from the rspec-dev repo.
# This file was generated on 2014-02-12T09:27:50+11: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 -x
Expand All @@ -13,7 +13,7 @@ if is_mri; then
clone_repo "rspec-expectations"
clone_repo "rspec-mocks"

if [ "$MAINTENANCE_BRANCH" != "2-99-maintenance" ]; then
if rspec_support_compatible; then
clone_repo "rspec-support"
fi

Expand Down
11 changes: 10 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 2014-02-10T09:51:50-08:00 from the rspec-dev repo.
# This file was generated on 2014-02-12T09:27:50+11:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

# idea taken from: http://blog.headius.com/2010/03/jruby-startup-time-tips.html
Expand Down Expand Up @@ -52,6 +52,15 @@ function is_mri_192 {
fi
}

function rspec_support_compatible {
if [ "$MAINTENANCE_BRANCH" != "2-99-maintenance" ] && [ "$MAINTENANCE_BRANCH" != "2-14-maintenance" ]; then
return 0
else
return 1
fi
}


function clone_repo {
if [ ! -d $1 ]; then # don't clone if the dir is already there
travis_retry git clone git://github.com/rspec/$1 --depth 1 --branch $MAINTENANCE_BRANCH
Expand Down
4 changes: 2 additions & 2 deletions script/run_build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2014-02-10T09:51:50-08:00 from the rspec-dev repo.
# This file was generated on 2014-02-12T09:27:50+11: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 -x
Expand All @@ -14,7 +14,7 @@ if is_mri; then
run_spec_suite_for "rspec-expectations"
run_spec_suite_for "rspec-mocks"

if [ "$MAINTENANCE_BRANCH" != "2-99-maintenance" ]; then
if rspec_support_compatible; then
run_spec_suite_for "rspec-support"
fi
else
Expand Down

0 comments on commit 6380add

Please sign in to comment.