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
myronmarston committed Feb 10, 2014
1 parent b8569fe commit 8f43214
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
@@ -1,4 +1,4 @@
# This file was generated on 2014-02-08T19:49:16+11:00 from the rspec-dev repo.
# This file was generated on 2014-02-10T09:52:15-08: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 @@ -21,4 +21,5 @@ matrix:
- rvm: jruby-18mode
- rvm: jruby-head
- rvm: ruby-head
- rvm: rbx
fast_finish: true
4 changes: 2 additions & 2 deletions script/clone_all_rspec_repos
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2014-02-08T19:49:16+11:00 from the rspec-dev repo.
# This file was generated on 2014-02-10T09:52:15-08: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 rspec_support_compatible; then
if [ "$MAINTENANCE_BRANCH" != "2-99-maintenance" ]; then
clone_repo "rspec-support"
fi

Expand Down
11 changes: 1 addition & 10 deletions script/functions.sh
@@ -1,4 +1,4 @@
# This file was generated on 2014-02-08T19:49:16+11:00 from the rspec-dev repo.
# This file was generated on 2014-02-10T09:52:15-08: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,15 +52,6 @@ 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
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2014-02-08T19:49:16+11:00 from the rspec-dev repo.
# This file was generated on 2014-02-10T09:52:15-08: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 rspec_support_compatible; then
if [ "$MAINTENANCE_BRANCH" != "2-99-maintenance" ]; then
run_spec_suite_for "rspec-support"
fi
else
Expand Down

0 comments on commit 8f43214

Please sign in to comment.