Sha256: acbb4597be945b8271c8bfdb1a5bccae605e1307fa731b9b37d30bd8fd8052ea

Contents?: true

Size: 950 Bytes

Versions: 127

Compression:

Stored size: 950 Bytes

Contents

#!/bin/bash

if hash rbenv 2>/dev/null; then
  eval "$(rbenv init -)"

  echo "Running tests under Ruby 1.9.3"
  rbenv shell 1.9.3-p194
  gem install pivotal-github
  bundle
  rspec spec
  echo "Running tests under Ruby 2.0.0"
  rbenv shell 2.0.0-p0
  gem instsll pivotal-github
  bundle
  rspec spec

  rbenv shell --unset
else

  # Load RVM into a shell session *as a function*
  if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
    # First try to load from a user install
    source "$HOME/.rvm/scripts/rvm"
  elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then
    # Then try to load from a root install
    source "/usr/local/rvm/scripts/rvm"
  else
    printf "ERROR: An RVM installation was not found.\n"
  fi

  echo "Running tests under Ruby 1.9.3"
  rvm use 1.9.3@polytexnic
  gem install pivotal-github
  bundle
  rspec spec
  echo "Running tests under Ruby 2.0.0"
  rvm use 2.0.0@polytexnic
  gem install pivotal-github
  bundle
  rspec spec
fi

Version data entries

127 entries across 127 versions & 1 rubygems

Version Path
polytexnic-1.10.8 tasks/bin/ruby_tests
polytexnic-1.10.7 tasks/bin/ruby_tests
polytexnic-1.10.6 tasks/bin/ruby_tests
polytexnic-1.10.5 tasks/bin/ruby_tests
polytexnic-1.10.4 tasks/bin/ruby_tests
polytexnic-1.10.3 tasks/bin/ruby_tests
polytexnic-1.10.2 tasks/bin/ruby_tests
polytexnic-1.10.1 tasks/bin/ruby_tests
polytexnic-1.10.0 tasks/bin/ruby_tests
polytexnic-1.9.2 tasks/bin/ruby_tests
polytexnic-1.9.1 tasks/bin/ruby_tests
polytexnic-1.9.0 tasks/bin/ruby_tests
polytexnic-1.8.2 tasks/bin/ruby_tests
polytexnic-1.8.1 tasks/bin/ruby_tests
polytexnic-1.8.0 tasks/bin/ruby_tests
polytexnic-1.7.5 tasks/bin/ruby_tests
polytexnic-1.7.4 tasks/bin/ruby_tests
polytexnic-1.7.3 tasks/bin/ruby_tests
polytexnic-1.7.2 tasks/bin/ruby_tests
polytexnic-1.7.1 tasks/bin/ruby_tests