Sha256: 9a815faccf5232b6c91eb982ad91c4e839a4fde1a62a24f810c2f62707c3084b

Contents?: true

Size: 1.85 KB

Versions: 7

Compression:

Stored size: 1.85 KB

Contents

version: 2
jobs:
  test:
    parallelism: 1
    docker:
      - image: circleci/ruby:2.5.1
    steps:
      - checkout

      - restore_cache:
          keys:
            - rails-demo-bundle-v2-{{ checksum "Gemfile.lock" }}
            - rails-demo-bundle-v2-

      - run:
          name: Bundle Install
          command: bundle check || bundle install --path vendor/bundle

      - save_cache:
          key: rails-demo-bundle-v2-{{ checksum "Gemfile.lock" }}
          paths:
            - vendor/bundle

      - run:
          name: Test
          command: bundle exec rspec -cfd
      - run:
          name: Rubocop
          command: bundle exec rubocop

  deploy_gem:
    parallelism: 1
    docker:
      - image: circleci/ruby:2.5.1
    steps:
      - checkout
      - run:
          name: Deployment
          command: ruby .circleci/gem_deployment.rb $RUBYGEMS_API_KEY

  deploy_gem_minor:
    parallelism: 1
    docker:
      - image: circleci/ruby:2.5.1
    steps:
      - checkout
      - run:
          name: Deployment
          command: ruby .circleci/gem_deployment.rb $RUBYGEMS_API_KEY minor

  deploy_gem_major:
    parallelism: 1
    docker:
      - image: circleci/ruby:2.5.1
    steps:
      - checkout
      - run:
          name: Deployment
          command: ruby .circleci/gem_deployment.rb $RUBYGEMS_API_KEY major


workflows:
  version: 2
  build_and_test:
    jobs:
      - test
      - deploy_gem:
          filters:
            branches:
              only:
                - deployment/gem
          requires:
            - test
      - deploy_gem_minor:
          filters:
            branches:
              only:
                - deployment/gem_minor
          requires:
            - test
      - deploy_gem_major:
          filters:
            branches:
              only:
                - deployment/gem_major
          requires:
            - test

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
slack_resources-0.1.9 .circleci/config.yml
slack_resources-0.1.8 .circleci/config.yml
slack_resources-0.1.7 .circleci/config.yml
slack_resources-0.1.6 .circleci/config.yml
slack_resources-0.1.5 .circleci/config.yml
slack_resources-0.1.4 .circleci/config.yml
slack_resources-0.0.0 .circleci/config.yml