Sha256: 3524e6a3b3a5f3bd48b4d4522b92ee961792bddec90e14fcb138373b9a671fc6

Contents?: true

Size: 1.73 KB

Versions: 7

Compression:

Stored size: 1.73 KB

Contents

# Inspired by: http://mikebian.co/running-tests-against-multiple-ruby-versions-using-circleci/

version: 2.1

orbs:
  ruby: circleci/ruby@1.1

jobs:
  test:
    parallelism: 1
    parameters:
      ruby-image:
        type: string
    docker:
      - image: << parameters.ruby-image >>
      - image: rabbitmq

    steps:
      - checkout
      - run:
          name: install dockerize
          command: wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
          environment:
            DOCKERIZE_VERSION: v0.3.0
      - run:
          name: Wait for rabbitmq
          command: dockerize -wait tcp://localhost:5672 -timeout 1m
      - run:
          name: Install bundler
          command: gem install bundler
      - run:
          name: Which bundler?
          command: bundle -v
      - run:
          name: bundle install
          command: bundle install
      - run:
          name: rspec
          command: bundle exec rspec

# strangely, there seems to be very little documentation about exactly how martix builds work.
# By defining a param inside your job definition, Circle CI will automatically spawn a job for
# unique param value passed via `matrix`. Neat!
# https://circleci.com/blog/circleci-matrix-jobs/
workflows:
  build_and_test:
    jobs:
      - test:
          matrix:
            parameters:
              ruby-image:
                - circleci/ruby:2.6
                - circleci/ruby:2.7
                - cimg/ruby:3.0
                - cimg/ruby:3.1
                - circleci/jruby:9.2
                - circleci/jruby:9.3

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active_publisher-1.5.0.pre .circleci/config.yml
active_publisher-1.4.2-java .circleci/config.yml
active_publisher-1.4.2 .circleci/config.yml
active_publisher-1.4.1-java .circleci/config.yml
active_publisher-1.4.1 .circleci/config.yml
active_publisher-1.4.1.pre-java .circleci/config.yml
active_publisher-1.4.1.pre .circleci/config.yml