Sha256: e6e60f048414269c80778c0e2f7c67d2548905562120ef930e4fe7a31c512300

Contents?: true

Size: 1.99 KB

Versions: 1

Compression:

Stored size: 1.99 KB

Contents

version: 2.1

orbs:
  samvera: samvera/circleci-orb@1.0

jobs:
  bundle_lint_test:
    parameters:
      ruby_version:
        type: string
      project:
        type: string
      bundler_version:
        type: string
        default: 2.3.11

    executor:
      name: 'samvera/ruby'
      ruby_version: << parameters.ruby_version >>

    steps:
      - checkout

      - run:
          name: Check for 'master' branch
          command: |
            git fetch --all --quiet --prune --prune-tags
            if [[ -n "$(git branch --all --list master */master)" ]]; then
                echo "A branch named 'master' was found. Please remove it."
                echo "$(git branch --all --list master */master)"
            fi
            [[ -z "$(git branch --all --list master */master)" ]]
      - samvera/cached_checkout

      - samvera/bundle:
          ruby_version: << parameters.ruby_version >>
          bundler_version: << parameters.bundler_version >>

      - samvera/rubocop

workflows:
  version: 2
  ci:
    jobs:
      - bundle_lint_test:
          project: bixby
          name: ruby3-1
          ruby_version: 3.1.1
      - bundle_lint_test:
          project: bixby
          name: ruby3-0
          ruby_version: 3.0.3
      - bundle_lint_test:
          project: bixby
          name: ruby2-7
          ruby_version: 2.7.5
      - bundle_lint_test:
          project: bixby
          name: ruby2-6
          ruby_version: 2.6.9

  nightly:
    triggers:
      - schedule:
          cron: "0 0 * * *"
          filters:
            branches:
              only:
                - main
    jobs:
      - bundle_lint_test:
          project: bixby
          name: ruby3-1
          ruby_version: 3.1.1
      - bundle_lint_test:
          project: bixby
          name: ruby3-0
          ruby_version: 3.0.3
      - bundle_lint_test:
          project: bixby
          name: ruby2-7
          ruby_version: 2.7.5
      - bundle_lint_test:
          project: bixby
          name: ruby2-6
          ruby_version: 2.6.9

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bixby-5.0.0 .circleci/config.yml