Skip to content

Instantly share code, notes, and snippets.

@njh
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save njh/9790943 to your computer and use it in GitHub Desktop.

Select an option

Save njh/9790943 to your computer and use it in GitHub Desktop.

Revisions

  1. njh revised this gist Mar 31, 2014. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions rake-spec-all
    Original file line number Diff line number Diff line change
    @@ -3,9 +3,10 @@
    for path in `rbenv root`"/versions/"*; do
    if [ -d "$path" ] && [ ! -h "$path" ]; then
    export RBENV_VERSION="${path##*/}"
    echo "Running 'rake spec' for $RBENV_VERSION:"
    rm Gemfile.lock
    rbenv exec bundle install
    echo "=== Running 'rake spec' for $RBENV_VERSION ==="
    rm -f Gemfile.lock
    rbenv exec bundle install --local
    rbenv exec rake spec
    echo && echo
    fi
    done
  2. njh created this gist Mar 26, 2014.
    11 changes: 11 additions & 0 deletions rake-spec-all
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/bin/bash

    for path in `rbenv root`"/versions/"*; do
    if [ -d "$path" ] && [ ! -h "$path" ]; then
    export RBENV_VERSION="${path##*/}"
    echo "Running 'rake spec' for $RBENV_VERSION:"
    rm Gemfile.lock
    rbenv exec bundle install
    rbenv exec rake spec
    fi
    done