fastlane/lib/fastlane/lane_manager.rb in fastlane-2.25.0.beta.20170401010021 vs fastlane/lib/fastlane/lane_manager.rb in fastlane-2.25.0.beta.20170402010035

- old
+ new

@@ -59,16 +59,20 @@ UI.error ex.to_s if ex.kind_of?(StandardError) # we don't want to print things like 'system exit' e = ex end # After running the lanes, since skip_docs might be somewhere in-between - Fastlane::DocsGenerator.run(ff) unless FastlaneCore::Env.truthy?("FASTLANE_SKIP_DOCS") + Fastlane::DocsGenerator.run(ff) unless skip_docs? duration = ((Time.now - started) / 60.0).round finish_fastlane(ff, duration, e) return ff + end + + def self.skip_docs? + Helper.test? || FastlaneCore::Env.truthy?("FASTLANE_SKIP_DOCS") end # All the finishing up that needs to be done def self.finish_fastlane(ff, duration, error) ff.runner.did_finish