Sha256: 5959183e563bddd49e11916a6711042057ea4130d0df59051dea28b97719ebc6
Contents?: true
Size: 1.35 KB
Versions: 2
Compression:
Stored size: 1.35 KB
Contents
module Sprout # The MXMLCCruise helper wraps up the fdb and mxmlc unit test tasks by # using either a Singleton or provided ProjectModel instance. # # The simple case that uses a Singleton ProjectModel: # ci :cruise # # Using a specific ProjectModel instance: # project_model :model # # ci :cruise => :model # # Configuring the proxied MXMLCTask # ci :cruise do |t| # t.link_report = 'LinkReport.rpt' # end # class MXMLCCruise < MXMLCHelper def initialize(args, &block) super library :asunit3 mxmlc output do |t| configure_mxmlc t configure_mxmlc_application t t.debug = true t.prerequisites << :asunit3 t.source_path << model.test_dir if(model.test_width && model.test_height) t.default_size = "#{model.test_width} #{model.test_height}" end yield t if block_given? end define_fdb t = define_outer_task t.prerequisites << output t.prerequisites << player_task_name end def create_output return "#{create_output_base}XMLRunner.swf" end def create_input input = super input.gsub!(/#{input_extension}$/, "XMLRunner#{input_extension}") return input end end end def ci(args, &block) return Sprout::MXMLCCruise.new(args, &block) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sprout-as3-bundle-1.0.8 | lib/sprout/tasks/mxmlc_ci.rb |
sprout-as3-bundle-1.0.9 | lib/sprout/tasks/mxmlc_ci.rb |