Sha256: 9ea5cb3d84ac8b1e4c238cb92152bc25e5ad3096737cfe41f31470def0de0fac

Contents?: true

Size: 1.73 KB

Versions: 2

Compression:

Stored size: 1.73 KB

Contents

version: 2
jobs:
  setup:
    docker: &docker
      - image: circleci/ruby:2.5.3-node
        environment:
          BUNDLE_PATH: vendor/bundle

    steps:
      - checkout

      - run:
          name: Check if Ruby versions match
          command: test "$(ruby -v | grep -oP '\d\.\d\.\d')" = "$(cat .ruby-version)"

      - restore_cache:
          keys:
            - gem-cache-{{ checksum ".ruby-version" }}

      - run:
          name: Install dependencies
          command: bundle install --jobs=4 --retry=3

      - save_cache:
          key: gem-cache-{{ checksum ".ruby-version" }}
          paths:
            - vendor/bundle

      - persist_to_workspace:
          root: .
          paths:
            - .

  lint:
    docker: *docker
    steps:
      - attach_workspace:
          at: .

      - run: bundle exec rake rubocop

  test:
    docker: *docker
    steps:
      - attach_workspace:
          at: .

      - run:
          name: run tests
          command: |
            mkdir /tmp/test-results

            bundle exec rspec --format progress \
                            --format RspecJunitFormatter \
                            --out /tmp/test-results/rspec.xml \
                            --format progress

      - store_test_results:
          path: /tmp/test-results

workflows:
  version: 2
  lint-and-test:
    jobs:
      - setup
      - lint:
          requires:
            - setup
      - test:
          requires:
            - setup
  nightly:
    triggers:
      - schedule:
          cron: "0 0 * * 2"
          filters:
            branches:
              only:
                - master
    jobs:
      - setup
      - lint:
          requires:
            - setup
      - test:
          requires:
            - setup

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
soapy_bing-1.0.1 .circleci/config.yml
soapy_bing-1.0.0 .circleci/config.yml