From d0bb6ee89058d711a880608b98d5e87176e37276 Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Thu, 27 Aug 2020 15:17:51 +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..51882ae --- /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_selectize.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_selectize.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