Sha256: 0e95e6a03d8e93148618ae87baad2c860eefea7332f07e207c69bd44aae46131

Contents?: true

Size: 1.77 KB

Versions: 2

Compression:

Stored size: 1.77 KB

Contents

version: 2.1

executors:
  working_directory: /root/jpostcode-rb
  ruby_3_2:
    docker:
      - image: cimg/ruby:3.2
  ruby_3_1:
    docker:
      - image: cimg/ruby:3.1
  ruby_3_0:
    docker:
      - image: cimg/ruby:3.0

commands:
  install_system_dependencies:
    description: "Install system dependencies"
    steps:
      - run:
          name: Install System Dependencies
          # https://circleci.com/docs/2.0/custom-images/#required-tools-for-primary-containers
          command: sudo apt-get update -y && sudo apt-get install -y ssh

  submodule_sync:
    description: "git submodule init & update"
    steps:
      - run:
          name: git submodule init & update
          command: |
            git submodule init
            git submodule update

  bundle_gems:
    description: "Bundle gems"
    steps:
      - run:
          name: Bundle gems
          command: |
            gem install bundler -v 2.4.21 --no-document --force
            bundle install
  run_tests:
    description: "Run tests"
    steps:
      - run:
          name: Run tests
          command: |
            bundle exec rake
            bundle exec rubocop

jobs:
  run_tests_on_ruby_3_2:
    executor: ruby_3_2
    steps:
      - install_system_dependencies
      - checkout
      - submodule_sync
      - bundle_gems
      - run_tests
  run_tests_on_ruby_3_1:
    executor: ruby_3_1
    steps:
      - install_system_dependencies
      - checkout
      - submodule_sync
      - bundle_gems
      - run_tests
  run_tests_on_ruby_3_0:
    executor: ruby_3_0
    steps:
      - install_system_dependencies
      - checkout
      - submodule_sync
      - bundle_gems
      - run_tests

workflows:
  version: 2
  test:
    jobs:
      - run_tests_on_ruby_3_2
      - run_tests_on_ruby_3_1
      - run_tests_on_ruby_3_0

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jpostcode-1.0.0.20241101 .circleci/config.yml
jpostcode-1.0.0.20241001 .circleci/config.yml