diff --git a/circle.yml b/circle.yml index 2f080e6c654..ffcc0c16eea 100644 --- a/circle.yml +++ b/circle.yml @@ -3,7 +3,7 @@ machine: version: "7.3" dependencies: override: - - bundle check --path=~/.fastlane_bundle || bundle install --path=~/.fastlane_bundle --jobs=4 --retry=3 + - rake bundle_install_all cache_directories: - ~/.fastlane_bundle test: diff --git a/rakelib/test_all.rake b/rakelib/test_all.rake index 624319b731a..9c7fca18d67 100644 --- a/rakelib/test_all.rake +++ b/rakelib/test_all.rake @@ -47,6 +47,18 @@ def bundle_install sh "bundle check#{path} || bundle install#{path} --jobs=4 --retry=3" end +task :bundle_install_all do + puts "Fetching dependencies in the root" + bundle_install + + for_each_gem do |repo| + Dir.chdir(repo) do + puts "Fetching dependencies for #{repo}" + bundle_install + end + end +end + def get_line_from_file(line_number, file) File.open(file) do |io| io.each_with_index do |line, index| @@ -66,7 +78,6 @@ task :test_all do repos_with_exceptions = [] rspec_log_file = "rspec_logs.json" - bundle_install for_each_gem do |repo| box "Testing #{repo}" Dir.chdir(repo) do @@ -85,7 +96,6 @@ task :test_all do rspec_command_parts << "--format RspecJunitFormatter --out #{output_file}" end - bundle_install sh rspec_command_parts.join(' ') sh "bundle exec rubocop" end