From 588c8feb40ab27bfa0b479a288a085be94d8eee9 Mon Sep 17 00:00:00 2001 From: "Gbolahan M. Bolajoko" Date: Thu, 31 Aug 2023 00:12:08 -0600 Subject: [PATCH] setting up config.yml for ruby-sdk repo --- .circleci/config.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..a47b391 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,32 @@ +version: 2.1 + +executors: + default: + working_directory: ~/sdk + docker: + - image: cimg/ruby:2.7 + +jobs: + build: + executor: default + steps: + - checkout + - setup_remote_docker: + docker_layer_caching: true + - run: + name: Build and run Rubocop + command: | + gem install bundler + bundle install --jobs 4 --retry 3 + bundle exec rubocop --parallel + - run: + name: Build and run tests + command: | + gem install bundler + bundle install --jobs 4 --retry 3 + bundle exec rake tests + +workflows: + run: + jobs: + - build \ No newline at end of file