Sha256: 1c5afc115a8c1c40ee5a5c80c0466cd227afba688153b3da855fba27626975fa

Contents?: true

Size: 731 Bytes

Versions: 13

Compression:

Stored size: 731 Bytes

Contents

require 'cerberus/builder/base'

class Cerberus::Builder::Bjam
 attr_reader :output

 def initialize(config)
   @config = config
 end

 def run
   Dir.chdir @config[:application_root]

   #set correct mountpoint if it present
   build_dir = @config[:builder, :bjam, :build_dir]
   Dir.chdir(build_dir) if build_dir

   cmd = @config[:builder, :bjam, :cmd] || 'bjam'
   task = @config[:builder, :bjam, :target] #|| 'clean'

   @output = `#{cmd} #{task} 2>&1`
   successful?
 end

 def successful?
   $?.exitstatus == 0 and not @output =~ /failed|error:|skipped/ 
     #/\*\*\* \d+ failure(s)? detected in test suite/ and not @output.include?("syntax error")
 end

 def brokeness
   return nil
 end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cerberus-0.3.3 lib/cerberus/builder/bjam.rb
cerberus-0.3.4 lib/cerberus/builder/bjam.rb
cerberus-0.4.0 lib/cerberus/builder/bjam.rb
cerberus-0.3.5 lib/cerberus/builder/bjam.rb
cerberus-0.3.6 lib/cerberus/builder/bjam.rb
cerberus-0.4.1 lib/cerberus/builder/bjam.rb
cerberus-0.4.4 lib/cerberus/builder/bjam.rb
cerberus-0.4.2 lib/cerberus/builder/bjam.rb
cerberus-0.4.3 lib/cerberus/builder/bjam.rb
cerberus-0.4.5.1 lib/cerberus/builder/bjam.rb
cerberus-0.4.5 lib/cerberus/builder/bjam.rb
cerberus-0.5 lib/cerberus/builder/bjam.rb
cerberus-0.6 lib/cerberus/builder/bjam.rb