autoproj 1.7.15.rc2 → 1.7.15.rc3

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -19,6 +19,9 @@
19
19
  to use OS packages in version-dependent setup (i.e. different packages for
20
20
  ruby 1.8 and 1.9 for instance)
21
21
  * fix the auto-add feature
22
+ * add the --no-color option for non-console outputs (think build servers)
23
+ * splitted the "Build failed: reason" line into two lines to allow extraction
24
+ by Jenkins
22
25
 
23
26
  = Version 1.7.14
24
27
  * fix support for local package sets, i.e. package sets that are saved in
@@ -152,7 +152,8 @@ module Autoproj
152
152
  class Reporter < Autobuild::Reporter
153
153
  def error(error)
154
154
  error_lines = error.to_s.split("\n")
155
- Autoproj.progress("Build failed: #{error_lines.shift}", :bold, :red)
155
+ Autoproj.progress("Build failed", :bold, :red)
156
+ Autoproj.progress("#{error_lines.shift}", :bold, :red)
156
157
  error_lines.each do |line|
157
158
  Autoproj.progress line
158
159
  end
@@ -14,14 +14,20 @@ module Autoproj
14
14
  if !silent?
15
15
  if args.empty?
16
16
  puts
17
- else
17
+ elsif CmdLine.color?
18
18
  STDERR.puts console.color(*args)
19
+ else
20
+ STDERR.puts args.first
19
21
  end
20
22
  end
21
23
  end
22
24
 
23
25
  def self.color(*args)
24
- console.color(*args)
26
+ if CmdLine.color?
27
+ console.color(*args)
28
+ else
29
+ args.first
30
+ end
25
31
  end
26
32
 
27
33
  # Displays an error message
@@ -744,6 +750,8 @@ module Autoproj
744
750
  def self.show_statistics?; !!@show_statistics end
745
751
  def self.ignore_dependencies?; @ignore_dependencies end
746
752
 
753
+ def self.color?; @color end
754
+
747
755
  def self.osdeps?; @mode == "osdeps" end
748
756
  def self.show_osdeps?; @mode == "osdeps" && @show_osdeps end
749
757
  def self.revshow_osdeps?; @mode == "osdeps" && @revshow_osdeps end
@@ -774,6 +782,7 @@ module Autoproj
774
782
  force_re_build_with_depends = nil
775
783
  @only_config = false
776
784
  @partial_build = false
785
+ @color = true
777
786
  Autobuild.doc_errors = false
778
787
  Autobuild.do_doc = false
779
788
  Autobuild.only_doc = false
@@ -849,6 +858,9 @@ where 'mode' is one of:
849
858
  opts.on("--reconfigure", "re-ask all configuration options (build modes only)") do
850
859
  Autoproj.reconfigure = true
851
860
  end
861
+ opts.on("--[no-]color", "enable or disable color in status messages (enabled by default)") do |flag|
862
+ @color = flag
863
+ end
852
864
  opts.on("--version", "displays the version and then exits") do
853
865
  puts "autoproj v#{Autoproj::VERSION}"
854
866
  exit(0)
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.7.15.rc2"
2
+ VERSION = "1.7.15.rc3"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoproj
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15424057
4
+ hash: 15424059
5
5
  prerelease: 7
6
6
  segments:
7
7
  - 1
8
8
  - 7
9
9
  - 15
10
10
  - rc
11
- - 2
12
- version: 1.7.15.rc2
11
+ - 3
12
+ version: 1.7.15.rc3
13
13
  platform: ruby
14
14
  authors:
15
15
  - Sylvain Joyeux
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-01-10 00:00:00 Z
20
+ date: 2012-01-13 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: autobuild