7 unset RUBYOPT
# so that rubinius builds
10 #pastie=$root/bin/pastie.rb
11 pastie
=$root/bin
/nopaste
12 rubinius
=$root/repo
/rubinius
14 thischeckout
=$rubinius/$1
19 rm -rf $thischeckout &>/dev
/null
20 git clone
$head $thischeckout &>/dev
/null
22 git checkout
$1 2>/dev
/null
25 rake build
&>build_log
27 if [[ $?
-ne 0 ]]; then
28 echo "build failed! `cat build_log | $pastie`"
33 .
/shotgun
/rubinius
-v -e 'true' &>ci_log
34 # a bit of a workaround because ci_log can exec
35 .
/bin
/ci
-f m
&>>ci_log
38 #old=$(stat -c '%Y' ci_log)
41 #while [[ $old != $(stat -c '%Y' ci_log) ]]; do
42 # old=$(stat -c '%Y' ci_log)
46 tail -1 ci_log |
grep expectations
&>/dev
/null
48 # did it pass the spec?
49 if [[ $?
-ne 0 ]]; then
50 echo "bin/ci failed! `cat -v ci_log | sed -e 's/\^\[\[0;3[14]m//' -e 's/\^\[\[0m//' | $pastie`"
52 failures
=$
(tail -1 ci_log | cut
-d' ' -f 5)
53 if [[ $failures -gt 0 ]]; then
54 echo "$(tail -1 ci_log); $(cat -v ci_log | sed -e 's/\^\[\[0;3[14]m//' -e 's/\^\[\[0m//' | $pastie)"
56 echo "$(tail -1 ci_log)"
60 # save some space, until it gets cleaned.
61 #rake distclean &>/dev/null
62 #rm -rf .git &>/dev/null