Sha256: bf14f5cc462304dc687b512352c4a18253a27b70ea252988512e5d44eec18d85

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

version: 2.1

jobs:
  test:
    parameters:
      ruby-version:
        type: string
    docker:
      - image: << parameters.ruby-version >>
    steps:
      - checkout

      - run:
          name: Gem install bundler
          command: gem update --system && gem install bundler

      - run:
          name: Bundle install
          command: bundle install --jobs=4 --retry=3 --path vendor/bundle

      - run:
          name: Run tests
          command: bundle exec rake

  publish:
    docker:
      - image: ruby:3.0.0
    steps:
      - checkout

      - run:
          name: Setup Rubygems
          command: bash .circleci/setup-rubygems

      - run:
          name: Build gem
          command: gem build braze_ruby.gemspec --output braze_ruby.gem

      - run:
          name: Publish gem
          command: gem push braze_ruby.gem

workflows:
  all-tests:
    jobs:
      - test:
          matrix:
            parameters:
              ruby-version: ["ruby:3.0.0", "ruby:2.7.2", "ruby:2.6.3"]
  release:
    jobs:
      - publish:
          filters:
            tags:
              only: /^v.*/
            branches:
              ignore: /.*/

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
braze_ruby-0.5.0 .circleci/config.yml