Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Works now

  • Loading branch information...
commit 268760b053a0244643202d08222f65f8cc1d6a2e 1 parent c4abdac
Dean Strelau authored
Showing with 5 additions and 7 deletions.
  1. +5 −7 bin/test-runner
View
12 bin/test-runner
@@ -1,5 +1,6 @@
#!/bin/zsh
-set -e
+
+function cmd() { echo ">> time $@" ; time $@ }
egrep -q 'test_helper|spec_helper' $1
if [ $? -eq 0 ] ; then # GIVE ME THE RAILS
@@ -7,16 +8,13 @@ if [ $? -eq 0 ] ; then # GIVE ME THE RAILS
# otherwise we'll have to boot up bundler from scratch
$(ps ax | grep -q '[s]pin serve')
if [ $? -eq 0 ] ; then
- echo ">> spin push $1"
- spin push $1
+ cmd spin push $1
else
- echo ">> bundle exec ruby -Ilib -Itest $1"
- bundle exec ruby -Ilib -Itest $1
+ cmd bundle exec ruby -Ilib -Itest $1
fi
else
# No Rails necessary. Whoohoo!
- echo ">> ruby -Ilib -Itest $1"
- ruby -Ilib -Itest $1
+ cmd ruby -Ilib -Itest $1
fi
# vim: noet:ft=sh:ts=4:sw=4:
Please sign in to comment.
Something went wrong with that request. Please try again.