From f44a5832ce11cf9384be0ef51b972bc25322034a Mon Sep 17 00:00:00 2001
From: mvandervoord <mvandervoord@e7d17a6e-8845-0410-bbbc-c8efb4fdad7e>
Date: Sat, 20 Mar 2010 21:08:43 +0000
Subject: [PATCH] - remove color coding when running in continuous integration

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@63 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
---
 rakefile.rb        | 8 ++++++--
 rakefile_helper.rb | 4 ++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/rakefile.rb b/rakefile.rb
index c2ea458..a132bfb 100644
--- a/rakefile.rb
+++ b/rakefile.rb
@@ -24,10 +24,14 @@ end
 desc "Build and test Unity"
 task :all => [:clean, :unit, :summary]
 task :default => [:clobber, :all]
-task :ci => [:default]
-task :cruise => [:default]
+task :ci => [:no_color, :default]
+task :cruise => [:no_color, :default]
 
 desc "Load configuration"
 task :config, :config_file do |t, args|
   configure_toolchain(args[:config_file])
 end
+
+task :no_color do
+  $color_output = false
+end
diff --git a/rakefile_helper.rb b/rakefile_helper.rb
index a4c50fe..3bd3a00 100644
--- a/rakefile_helper.rb
+++ b/rakefile_helper.rb
@@ -8,10 +8,10 @@ require 'auto/colour_prompt'
 module RakefileHelpers
 
   C_EXTENSION = '.c'
-  COLOUR = true
+  $color_output = true
   
   def report(message)
-    if not COLOUR
+    if not $color_output
       puts($stdout.puts(message))
     else
       message.each_line do |line|