From f8fe11706816d3ccb6d6e8b90d74c2c33e20429f Mon Sep 17 00:00:00 2001 From: schneems Date: Thu, 5 Nov 2020 12:33:40 -0600 Subject: [PATCH] CircleCI --- .circleci/config.yml | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..4b0e6a7 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,47 @@ +version: 2.1 +orbs: + ruby: circleci/ruby@1.1.2 +references: + unit: &unit + run: + name: Run test suite + command: bundle exec rspec spec/ + +jobs: + "ruby-2-5": + docker: + - image: 'cimg/base:stable' + steps: + - checkout + - ruby/install: + version: "2.5" + - ruby/install-deps + - <<: *unit + + "ruby-2-6": + docker: + - image: 'cimg/base:stable' + steps: + - checkout + - ruby/install: + version: "2.6" + - ruby/install-deps + - <<: *unit + + "ruby-2-7": + docker: + - image: 'cimg/base:stable' + steps: + - checkout + - ruby/install: + version: "2.7" + - ruby/install-deps + - <<: *unit + +workflows: + version: 2 + build: + jobs: + - "ruby-2-5" + - "ruby-2-6" + - "ruby-2-7"