Class: CukeBuilder
- Inherits:
-
Object
- Object
- CukeBuilder
- Defined in:
- lib/circle/art.rb
Instance Attribute Summary collapse
-
#build ⇒ Object
readonly
Returns the value of attribute build.
-
#parser ⇒ Object
readonly
Returns the value of attribute parser.
Instance Method Summary collapse
- #build_reports! ⇒ Object
-
#initialize(build, parser) ⇒ CukeBuilder
constructor
A new instance of CukeBuilder.
- #releases_files ⇒ Object
- #tests_files ⇒ Object
Constructor Details
#initialize(build, parser) ⇒ CukeBuilder
Returns a new instance of CukeBuilder.
93 94 95 96 97 98 |
# File 'lib/circle/art.rb', line 93 def initialize(build, parser) @build = build @parser = parser @download_path = "downloads/#{build}/artifacts" @report_path = "downloads/builds/#{build}" end |
Instance Attribute Details
#build ⇒ Object (readonly)
Returns the value of attribute build.
91 92 93 |
# File 'lib/circle/art.rb', line 91 def build @build end |
#parser ⇒ Object (readonly)
Returns the value of attribute parser.
91 92 93 |
# File 'lib/circle/art.rb', line 91 def parser @parser end |
Instance Method Details
#build_reports! ⇒ Object
108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/circle/art.rb', line 108 def build_reports! ReportBuilder.configure do |config| config.report_title = "Build #{build} Results" config.json_path = tests_files config.html_report_path = @report_path config.additional_info = {'browser' => 'CircleCI', 'build' => build, 'tests' => tests_files} end puts "building..." ReportBuilder.build_report end |
#releases_files ⇒ Object
104 105 106 |
# File 'lib/circle/art.rb', line 104 def releases_files parser.filenames.grep(/release\.cucumber/).map{|e| File.join(@download_path, e)} end |
#tests_files ⇒ Object
100 101 102 |
# File 'lib/circle/art.rb', line 100 def tests_files parser.filenames.grep(/tests\.cucumber/).map{|e| File.join(@download_path, e) } end |