mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-24 00:28:35 +08:00
- 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
This commit is contained in:
@ -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
|
||||
|
@ -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|
|
||||
|
Reference in New Issue
Block a user