Browse files

Added scripts to help change build status.

  • Loading branch information...
1 parent 2673e57 commit af3daadd22901b415cdd7b92a85df81aa87a0170 @ndbroadbent committed Sep 12, 2011
Showing with 17 additions and 1 deletion.
  1. +2 −1 Rakefile
  2. +9 −0 change_status
  3. +3 −0 fail
  4. +3 −0 pass
View
3 Rakefile
@@ -12,7 +12,8 @@ task :test do
putc '.'
$stdout.flush
end
- exit 0
+ status = File.read("status").strip.to_i rescue 0
+ exit status
end
task :default => :test
View
9 change_status
@@ -0,0 +1,9 @@
+#!/bin/bash
+echo $1 > status
+# Commit status with trailing space if nothing has changed.
+if [ $(git status --porcelain | wc -l) -gt 0 ]; then
+ echo "$1 " > status
+fi
+git commit -am "Exit status is $1"
+git push origin master
+
View
3 fail
@@ -0,0 +1,3 @@
+#!/bin/bash
+./change_status 1
+
View
3 pass
@@ -0,0 +1,3 @@
+#!/bin/bash
+./change_status 0
+

0 comments on commit af3daad

Please sign in to comment.