From 998d671204b4213d3a8a3da064b8488ec1ab5fdc Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Tue, 10 Dec 2019 20:19:38 -0300 Subject: [PATCH] Set up Ruby step (#3691) --- .circleci/config.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f10228a67..2bdbdacb2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -42,15 +42,14 @@ commands: for: type: string steps: + - ruby-setup - restore_cache: name: Restore Fastlane cache key: v1-gems-<< parameters.for >>-{{ checksum "fastlane/Gemfile.lock" }}-{{ arch }} - run: working_directory: fastlane name: Download Fastlane dependencies - command: | - chruby 2.6.3 - bundle install --path vendor/bundle + command: bundle install --path vendor/bundle - save_cache: name: Save Fastlane cache key: v1-gems-<< parameters.for >>-{{ checksum "fastlane/Gemfile.lock" }}-{{ arch }} @@ -200,6 +199,12 @@ commands: - store_artifacts: path: ~/mattermost-mobile/<> + ruby-setup: + steps: + - run: + name: Set Ruby Version + command: echo "ruby-2.6.3" > ~/.ruby-version + jobs: test: working_directory: ~/mattermost-mobile