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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Cache dependencies #8200

Merged
merged 1 commit into from Feb 12, 2017
Merged

[CI] Cache dependencies #8200

merged 1 commit into from Feb 12, 2017

Conversation

endocrimes
Copy link
Collaborator

@endocrimes endocrimes commented Feb 11, 2017

This PR updates the CI configuration to install gems into the .bundle directory. This allows the installed gems to be cached to avoid fetching them from Rubygems on every build. It also changes bundle install calls to first invoke bundle check. Together this should save 10 - 30 seconds from every CI build, potentially more when the network is slow.

ensure_no_debug_code(text: "now: ", extension: ".rb") # rspec focus
ensure_no_debug_code(text: "<<<<<<<", extension: ".rb") # Merge conflict
ensure_no_debug_code(text: "binding.pry", extension: ".rb", exclude: "(.bundle/**/*.rb|**/*/playground.rb)") # debugging code
ensure_no_debug_code(text: "# TODO", extension: ".rb", exclude: "\*/.bundle*") # TODOs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we install the bundler in a root directory, so that it's not included by default when searching through files?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KrauseFx Sadly, ensure_no_debug_code runs in the context of the checkout root, not of the fastlane module. And installing out of that tree is kinda liable to breakages if the environment changes.

@fastlane-bot-helper
Copy link
Contributor

fastlane-bot-helper commented Feb 12, 2017

1 Warning
⚠️ Before submitting a Pull Request, please create an issue on GitHub to discuss the change. Please add a link to the issue in the PR body.

Generated by 🚫 Danger

Install bundle to `.bundle` to allow for CI caching.
@endocrimes endocrimes merged commit 11a6b88 into master Feb 12, 2017
@KrauseFx KrauseFx deleted the dani_ci_cleanup branch February 12, 2017 22:59
@fastlane fastlane locked and limited conversation to collaborators May 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants