Sha256: 18ccfa198afdd00b7d80c61c99219bd6b9e8292ce4aa1eaa3d98b912ab9c1093

Contents?: true

Size: 1.77 KB

Versions: 1

Compression:

Stored size: 1.77 KB

Contents

---
version: 2.1

references:
  bundle_install: &bundle_install
    run:
      name: Bundle
      command: |
        gem install bundler --no-document && \
        bundle config set no-cache 'true' && \
        bundle config set jobs '4' && \
        bundle config set retry '3' && \
        bundle install

  cache_bundle: &cache_bundle
    save_cache:
      key: bundle-<< parameters.ruby_version >>-{{ checksum "creditsafe.gemspec" }}-{{ checksum "Gemfile" }}
      paths:
        - vendor/bundle

  restore_bundle: &restore_bundle
    restore_cache:
      key: bundle-<< parameters.ruby_version >>-{{ checksum "creditsafe.gemspec" }}-{{ checksum "Gemfile" }}

  steps: &steps
    - checkout
    - *restore_bundle
    - *bundle_install
    - *cache_bundle
    - run:
        name: Run specs
        command: |
          circleci tests glob "spec/**/*_spec.rb"
          bundle exec rspec $(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings) --profile --format progress --format RspecJunitFormatter -o /tmp/circle_artifacts/rspec.xml
    - run:
        name: "Rubocop"
        command: bundle exec rubocop --extra-details --display-style-guide --parallel --force-exclusion
    - store_artifacts:
        path: /tmp/circle_artifacts/
    - store_test_results:
        path: /tmp/circle_artifacts/

  ruby_versions: &ruby_versions
    - "2.7"
    - "3.0"

jobs:
  test_and_lint:
    working_directory: /mnt/ramdisk
    parameters:
      ruby_version:
        type: string
    docker:
      - image: cimg/ruby:<< parameters.ruby_version >>
        environment:
          CIRCLE_TEST_REPORTS: /tmp/circle_artifacts/
    steps: *steps

workflows:
  version: 2
  tests:
    jobs:
      - test_and_lint:
          matrix:
            parameters:
              ruby_version: *ruby_versions

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
creditsafe-0.7.0 .circleci/config.yml