From d606bd92ca4fb3a3385b6d773579f2c105e582d7 Mon Sep 17 00:00:00 2001 From: Jerome Lacoste Date: Tue, 29 Oct 2024 17:19:54 +0100 Subject: [PATCH 1/2] Drop Circle now that we use github since 532bb2792ab5eda2449b80131bced399e988493e --- .circleci/config.yml | 87 -------------------------------------------- 1 file changed, 87 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 0511d5e..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,87 +0,0 @@ -# Ruby CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-ruby/ for more details -# -version: 2.1 - -orbs: - ruby: circleci/ruby@1.1 - -#executors: -# linux: -# docker: -# - image: cimg/base:2020.01 -# macos: -# macos: -# xcode: 11.4 - -workflows: - all-tests: - jobs: - - build: - matrix: - parameters: - # os: [linux] - ruby-version: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"] - -jobs: - build: - parameters: - # os: - # type: executor - ruby-version: - type: string - - docker: - - image: cimg/ruby:<< parameters.ruby-version >> - - # executor: << parameters.os >> - - working_directory: ~/repo - - steps: - - checkout - - # Download and cache dependencies - - restore_cache: - keys: - - v1-dependencies-{{ checksum "Gemfile.lock" }} - # fallback to using the latest cache if no exact match is found - - v1-dependencies- - - - run: - name: Configure Bundler - command: | - echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV - source $BASH_ENV - gem install bundler -v "$BUNDLER_VERSION" - bundle config set path '.bundle' - - - run: - name: install dependencies - command: | - bundle install --jobs=4 --retry=3 - - - save_cache: - paths: - - ./venv - key: v1-dependencies-{{ checksum "Gemfile.lock" }} - - # Database setup - # - run: bundle exec rake db:create - # - run: bundle exec rake db:schema:load - - # run tests! - - run: - name: run tests - command: | - echo $BUNDLER_VERSION - bundle --version - bundle exec rake - - # collect reports - - store_test_results: - path: /tmp/rspec/ - - store_artifacts: - path: /tmp/rspec/ - destination: test-results From 728391d2fa6c3445958bac8ff884dda083ac9694 Mon Sep 17 00:00:00 2001 From: Jerome Lacoste Date: Tue, 29 Oct 2024 17:27:49 +0100 Subject: [PATCH 2/2] Drop circle in Rakefile as well --- Rakefile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Rakefile b/Rakefile index 4055959..eac7833 100644 --- a/Rakefile +++ b/Rakefile @@ -200,15 +200,8 @@ end desc 'Run all rspec tests' task :test_all do formatter = "--format progress" - if ENV["CIRCLECI"] - Dir.mkdir("/tmp/rspec/") - formatter += " -r rspec_junit_formatter --format RspecJunitFormatter -o /tmp/rspec/rspec.xml" - TEST_FILES = `(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)`.tr!("\n", ' ') - rspec_args = "#{formatter} #{TEST_FILES}" - else - formatter += ' --pattern "./spec/**/*_spec.rb"' - rspec_args = formatter - end + formatter += ' --pattern "./spec/**/*_spec.rb"' + rspec_args = formatter sh "rspec #{rspec_args}" end