Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not change or generate README.md after running rspec #8629

Merged
merged 6 commits into from
Apr 1, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion fastlane/lib/fastlane/lane_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def self.cruise_lane(platform, lane, parameters = nil, env = nil)
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

Expand All @@ -70,6 +70,10 @@ def self.cruise_lane(platform, lane, parameters = nil, env = nil)
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
Expand Down