Sha256: 812923c870ecbaa8c7a5a6b87144336a29f11b7611480243ef3cee79e34fba28

Contents?: true

Size: 1.94 KB

Versions: 4

Compression:

Stored size: 1.94 KB

Contents

version: 2
references:
  unit: &unit
    run:
      name: Run test suite
      command: bundle exec rake
  restore: &restore
    restore_cache:
      keys:
        - v1-dependencies-{{ checksum "Gemfile.lock" }}
        # fallback to using the latest cache if no exact match is found
        - v1-dependencies-
  bundle: &bundle
    run:
      name: install dependencies
      command: |
        bundle install --jobs=4 --retry=3 --path vendor/bundle
  save: &save
    save_cache:
      paths:
        - ./vendor/bundle
      key: v1-dependencies-{{ checksum "Gemfile.lock" }}
jobs:
  "ruby-2.5":
    docker:
      - image: circleci/ruby:2.5
      - image: circleci/redis:4.0
    steps:
      - checkout
      - <<: *restore
      - <<: *bundle
      - <<: *save
      - <<: *unit
  "ruby-2.6":
    environment:
      COVERAGE: true
      CC_TEST_REPORTER_ID: 003c3033501d70a2653bd887ff9a8b2884a263e6a4e27f2ba68748e15530918d
    docker:
      - image: circleci/ruby:2.6
      - image: circleci/redis:4.0
    steps:
      - checkout
      - <<: *restore
      - <<: *bundle
      - <<: *save

      - run:
          name: Setup Code Climate test-reporter
          command: |
            # download test reporter as a static binary
            curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
            chmod +x ./cc-test-reporter

      - run:
          name: Code Climate before-build
          command: |
            ./cc-test-reporter before-build

      - <<: *unit

      - run:
          name: Report code coverage to Code Climate
          command: |
            ./cc-test-reporter after-build -t simplecov --exit-code $?
  "jruby":
    docker:
      - image: circleci/jruby:latest
      - image: circleci/redis:4.0
    steps:
      - checkout
      - <<: *restore
      - <<: *bundle
      - <<: *save
      - <<: *unit

workflows:
  version: 2
  build:
    jobs:
      - "ruby-2.5"
      - "ruby-2.6"
      - "jruby"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sidekiq-6.0.4 .circleci/config.yml
sidekiq-6.0.3 .circleci/config.yml
sidekiq-6.0.2 .circleci/config.yml
sidekiq-6.0.1 .circleci/config.yml