mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-24 08:37:33 +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"
|
desc "Build and test Unity"
|
||||||
task :all => [:clean, :unit, :summary]
|
task :all => [:clean, :unit, :summary]
|
||||||
task :default => [:clobber, :all]
|
task :default => [:clobber, :all]
|
||||||
task :ci => [:default]
|
task :ci => [:no_color, :default]
|
||||||
task :cruise => [:default]
|
task :cruise => [:no_color, :default]
|
||||||
|
|
||||||
desc "Load configuration"
|
desc "Load configuration"
|
||||||
task :config, :config_file do |t, args|
|
task :config, :config_file do |t, args|
|
||||||
configure_toolchain(args[:config_file])
|
configure_toolchain(args[:config_file])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
task :no_color do
|
||||||
|
$color_output = false
|
||||||
|
end
|
||||||
|
@ -8,10 +8,10 @@ require 'auto/colour_prompt'
|
|||||||
module RakefileHelpers
|
module RakefileHelpers
|
||||||
|
|
||||||
C_EXTENSION = '.c'
|
C_EXTENSION = '.c'
|
||||||
COLOUR = true
|
$color_output = true
|
||||||
|
|
||||||
def report(message)
|
def report(message)
|
||||||
if not COLOUR
|
if not $color_output
|
||||||
puts($stdout.puts(message))
|
puts($stdout.puts(message))
|
||||||
else
|
else
|
||||||
message.each_line do |line|
|
message.each_line do |line|
|
||||||
|
Reference in New Issue
Block a user