Skip to content

Commit

Permalink
[CI] Cache dependencies (fastlane#8200)
Browse files Browse the repository at this point in the history
Install bundle to `.bundle` to allow for CI caching.
  • Loading branch information
endocrimes authored Feb 12, 2017
1 parent a5267d8 commit 11a6b88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies:
pre:
- brew install shellcheck
override:
- bundle install --jobs=4 --retry=3
- bundle check || bundle install --jobs=4 --retry=3 --path .bundle
test:
pre:
- ulimit -n 400
Expand Down
12 changes: 6 additions & 6 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ desc "Verifies all tests pass and the current state of the repo is valid"
private_lane :validate_repo do
# Verifying that no debug code is in the code base
#
ensure_no_debug_code(text: "binding.pry", extension: ".rb", exclude: "**/*/playground.rb") # debugging code
ensure_no_debug_code(text: "# TODO", extension: ".rb") # TODOs
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: "playground.rb", exclude_dirs: ["\.bundle"]) # debugging code
ensure_no_debug_code(text: "# TODO", extension: ".rb", exclude_dirs: ["\.bundle"]) # TODOs
ensure_no_debug_code(text: "now: ", extension: ".rb", exclude_dirs: ["\.bundle"]) # rspec focus
ensure_no_debug_code(text: "<<<<<<<", extension: ".rb", exclude_dirs: ["\.bundle"]) # Merge conflict

rubocop

Expand All @@ -252,15 +252,15 @@ private_lane :validate_repo do

Dir.chdir("..") do
# Install the bundle and the actual gem
sh "bundle install"
sh "bundle check || bundle install"
sh "rake install"

# Run the tests
#
sh "bundle exec rake test_all"

# Verify shell code style
sh 'find -E . -regex ".*\.(sh|bash)" -not -name "Pods-*" -exec shellcheck {} +'
sh 'find -E . -regex ".*\.(sh|bash)" -not -name "Pods-*" -name ".bundle" -exec shellcheck {} +'
end

# Verify docs are still working
Expand Down

0 comments on commit 11a6b88

Please sign in to comment.