Sha256: 2be012b35681c6f0acf2c32f9408e16e7ff9ac5eceb283faa9e86369f49f850b

Contents?: true

Size: 1.92 KB

Versions: 14

Compression:

Stored size: 1.92 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:
    - image: ghcr.io/bukowskis/base-image/development:ruby-3.3.1-bookworm-v2
      auth:
        username: $GHCR_USER
        password: $GHCR_PASSWORD
    - image: cimg/postgres:16.1
      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: Add postgres to hosts
          command: |
           tee -a /etc/hosts \<<<'127.0.0.1 postgres'
      - 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

14 entries across 14 versions & 1 rubygems

Version Path
messaging-4.0.12 .circleci/config.yml
messaging-4.0.11 .circleci/config.yml
messaging-4.0.10 .circleci/config.yml
messaging-4.0.10.pre .circleci/config.yml
messaging-4.0.9 .circleci/config.yml
messaging-4.0.8 .circleci/config.yml
messaging-4.0.7 .circleci/config.yml
messaging-4.0.6 .circleci/config.yml
messaging-4.0.5 .circleci/config.yml
messaging-4.0.4.pre .circleci/config.yml
messaging-4.0.3.pre .circleci/config.yml
messaging-4.0.2.pre .circleci/config.yml
messaging-4.0.1.pre .circleci/config.yml
messaging-4.0.0.pre .circleci/config.yml