From b39ef4dce9e8ddee77c06740fa82173d8679daae Mon Sep 17 00:00:00 2001 From: Roger Oba Date: Wed, 17 Jan 2024 21:30:31 -0300 Subject: [PATCH] Fix CI by installing specific bundler version. --- .ci/bundler_version.rb | 5 +++++ .circleci/config.yml | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .ci/bundler_version.rb diff --git a/.ci/bundler_version.rb b/.ci/bundler_version.rb new file mode 100644 index 000000000..77dc06642 --- /dev/null +++ b/.ci/bundler_version.rb @@ -0,0 +1,5 @@ +# /usr/bin/env ruby +file = File.join(__dir__, "..", "Gemfile.lock") +lines = File.read(file).split("\n") +idx = lines.index { |l| l == "BUNDLED WITH" } +puts lines[idx + 1].strip diff --git a/.circleci/config.yml b/.circleci/config.yml index cb448d462..178238e3a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,7 +9,7 @@ jobs: - checkout - run: sudo pip3 install pipenv - run: pipenv install - - run: gem install bundler + - run: gem install bundler -v $(ruby .ci/bundler_version.rb) - run: bundle update - run: pipenv run bundle exec fastlane test - run: bundle exec rubocop @@ -22,7 +22,7 @@ jobs: - checkout - run: sudo pip3 install pipenv - run: pipenv install - - run: gem install bundler + - run: gem install bundler -v $(ruby .ci/bundler_version.rb) - run: bundle update - run: pipenv run ./scripts/ci/deploy.sh