Sha256: d313d5c4ec24e5df80efeb29f04feef54afe24d816ee37b0556d3405a09984e9

Contents?: true

Size: 1.43 KB

Versions: 1

Compression:

Stored size: 1.43 KB

Contents

version: 2.1

jobs:
  test:
    docker:
      - image: circleci/ruby:2.7.4-node
        auth:
          username: $DOCKERHUB_USERNAME
          password: $DOCKERHUB_TOKEN
      - image: circleci/postgres:9.6.6-alpine
        auth:
          username: $DOCKERHUB_USERNAME
          password: $DOCKERHUB_TOKEN
    steps:
      - checkout
      - run:
          name: run tests
          command: |
            bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
            bundle exec rspec

  push_to_rubygems:
    docker:
      - image: circleci/ruby:2.7.4
        auth:
          username: $DOCKERHUB_USERNAME
          password: $DOCKERHUB_TOKEN
    steps:
      - checkout
      - run:
          name: Create .gem/credentials file
          command: |
            mkdir ~/.gem
            echo "---
              :rubygems_api_key: $RUBYGEMS_API_KEY
            " > ~/.gem/credentials
            chmod 600 ~/.gem/credentials
      - run:
          name: Release to rubygems
          command: |
            gem build queue_classic_matchers
            gem push queue_classic_matchers-*.gem

workflows:
  version: 2
  gem_release:
    jobs:
      - test:
          context:
            - DockerHub

      - push_to_rubygems:
          filters:
            branches:
              ignore:
                - /.*/
            tags:
              only:
                - /^v.*/
          context:
            - DockerHub

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
queue_classic_matchers-4.0.0.alpha2 .circleci/config.yml