From 593ad3841ac0c2acfe5fc12e62323278c3703809 Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Tue, 1 Sep 2020 11:40:23 +0200 Subject: [PATCH] Add .circleci/config.yml --- .circleci/config.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..d766f6a --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,33 @@ +version: 2.1 +orbs: + ruby: circleci/ruby@0.1.2 + +jobs: + build: + docker: + - image: circleci/ruby:2.6.6-stretch-node-browsers + executor: ruby/default + steps: + - checkout + - restore_cache: + key: gem-cache-{{ checksum "activeadmin_quill_editor.gemspec" }} + - run: + name: Setup Bundler + command: gem install bundler + - run: + name: Bundle Install + command: bundle install --path vendor/bundle + - save_cache: + key: gem-cache-{{ checksum "activeadmin_quill_editor.gemspec" }} + paths: vendor/bundle + - run: + name: Run Specs + command: | + bin/rspec \ + --profile 10 \ + --format RspecJunitFormatter \ + --out test_results/rspec.xml \ + --format progress \ + $(circleci tests glob "spec/**/*_spec.rb") + - store_test_results: + path: test_results