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