Sha256: d385c57fd417af89bdce517a70b423242f1af62b79d99e6c492de2cb7729957a

Contents?: true

Size: 1.88 KB

Versions: 3

Compression:

Stored size: 1.88 KB

Contents

# Ruby CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
#
version: 2.1
orbs:
   slack: circleci/slack@4.8.2

shared: &shared
  docker:
    # https://github.com/bukowskis/fineart/wiki/Updating-the-development-docker-image-for-Circle-CI
    - image: ghcr.io/bukowskis/base-image/development:ruby-2.6.6-v5
      auth:
        username: $GHCR_USER
        password: $GHCR_PASSWORD
    - image: cimg/postgres:12.11
      environment:
        - POSTGRES_HOST_AUTH_METHOD: trust
  resource_class: large
  environment:
    - CC_TEST_REPORTER_ID: 94ada9b95ee3f232a6e984809d37917cfee90ac47805429e8c49742b2e8d2276
    - DISABLE_SPRING: 1
    - RACK_ENV: test

commands:
  bundle_install:
    steps:
      - restore_cache:
          name: Restore Bundler Cache
          key: bukowskis-bundle-{{ .Environment.CACHE_VERSION }}-{{ checksum "Gemfile.lock" }}

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

      - save_cache:
          key: bukowskis-bundle-{{ .Environment.CACHE_VERSION }}-{{ checksum "Gemfile.lock" }}
          paths:
            - vendor/bundle

jobs:
  specs:
    <<: *shared
    steps:
      - checkout
      - bundle_install
      - run:
          name: Setup Code Climate test-reporter
          command: |
            curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
            chmod +x ./cc-test-reporter
      - run:
          name: Database Setup
          command: |
            cd spec/example_app
            bin/rails db:create
            bin/rails db:migrate

      - run:
          name: run tests
          command: |
            ./cc-test-reporter before-build
            bundle exec rspec
            ./cc-test-reporter after-build --exit-code $?

workflows:
  version: 2
  messaging_specs:
    jobs:
      - specs

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
messaging-3.7.3 .circleci/config.yml
messaging-3.7.2 .circleci/config.yml
messaging-3.7.1 .circleci/config.yml