Sha256: 5d06de6143c33723ac8d97c224fb0f71a7532fb8d18dea085e9c7cc79a48e081

Contents?: true

Size: 1.79 KB

Versions: 1

Compression:

Stored size: 1.79 KB

Contents

version: 2.1

orbs:
  status_to_ms_teams: bluemarblepayroll/status_to_ms_teams_pure_bash@1.0.0

jobs:
  build:
    parameters:
      use-bundler-cache:
        type: boolean
        default: true

    docker:
      - image: circleci/ruby:2.6.6-buster
        environment:
          FORBID_FOCUSED_SPECS: 1
    working_directory: ~/dbee
    steps:
      - checkout

      # TODO: wrap bundler caching logic into an Orb:
      - when:
          condition: << parameters.use-bundler-cache >>
          steps:
            - restore_cache:
                key: v1.0.0-build-ruby-dependency-cache-{{ checksum "dbee.gemspec" }}-{{ checksum "Gemfile" }}-{{ checksum ".ruby-version" }}

      - run: bundle install --path vendor/bundle

      - when:
          condition: << parameters.use-bundler-cache >>
          steps:
            - save_cache:
                key: v1.0.0-build-ruby-dependency-cache-{{ checksum "dbee.gemspec" }}-{{ checksum "Gemfile" }}-{{ checksum ".ruby-version" }}
                paths:
                  - vendor/bundle

      - store_artifacts:
          path: Gemfile.lock

      - run: bundle exec rubocop

      - run: COVERAGE=true bundle exec rspec -r rspec_junit_formatter --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml

      - store_test_results:
          path: test-results

      - store_artifacts:
          path: coverage

      - status_to_ms_teams/report:
          webhook_url: $MS_TEAMS_WEBHOOK_URL

workflows:
  version: 2.1
  build:
    jobs:
      - build:
          context: org-global
  monthly-gem-dependency-refresh-check:
    triggers:
      - schedule:
          cron: '0 0 1 * *'
          filters:
            branches:
              only:
                - master
    jobs:
      - build:
          context: org-global
          use-bundler-cache: false

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dbee-3.1.0 .circleci/config.yml