Skip to content

Commit

Permalink
updating stacktests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Yoon committed Mar 24, 2014
1 parent eb8b91a commit 1656342
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions stacktests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ echo ""

# Set the prompt for the select command
PS3="Choose a stack or 'q' to quit: "
export CUCUMBER_OPTS="--format CucumberSpinner::ProgressBarFormatter"
export SPEC_OPTS="--format Fuubar --color spec"
export BUNDLER_VERSION=1.5.3

options=""
rubies=(2.0.0 2.1.1)
rails_versions=(rails_3.2 rails_4.0)
rails_versions=(3.2.17 4.0.0)

for i in "${rubies[@]}"
do
Expand All @@ -33,13 +32,13 @@ select combo in $options; do
export RAILS_VERSION=$j
source ~/.rvm/scripts/rvm
rvm use $CI_RUBY@surveyor-$RAILS_VERSION --create
read -p "Press [Enter] to run tests on $CI_RUBY@$RAILS_VERSION..."
read -p "Press [Enter] to run tests on $CI_RUBY@surveyor-$RAILS_VERSION..."
gem list -i bundler -v $BUNDLER_VERSION
if [ $? -ne 0 ]; then
gem install bundler -v $BUNDLER_VERSION
fi
bundle _${BUNDLER_VERSION}_ update
bundle _${BUNDLER_VERSION}_ exec rake testbed spec cucumber cucumber:wip
bundle _${BUNDLER_VERSION}_ exec rake testbed spec
done
done
;;
Expand All @@ -52,7 +51,7 @@ select combo in $options; do
export RAILS_VERSION=${arr[1]}
source ~/.rvm/scripts/rvm
rvm use $CI_RUBY@surveyor-$RAILS_VERSION --create
read -p "Press [Enter] to run tests on $CI_RUBY@$RAILS_VERSION..."
read -p "Press [Enter] to run tests on $CI_RUBY@surveyor-$RAILS_VERSION..."
gem list -i bundler -v $BUNDLER_VERSION
if [ $? -ne 0 ]; then
gem install bundler -v $BUNDLER_VERSION
Expand Down

0 comments on commit 1656342

Please sign in to comment.