Sha256: 236abb1a3e98c7bca28370b2474c57cee0d44ddd2bff6f6a7f9dac5a93e7ac5f

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

---
version: 2
jobs:
  build:
    environment:
      CC_TEST_REPORTER_ID: '259b37cf1fd88604007648fdd1a3df71a73ee30c4bc935f03d10a6d3e38ac964'
    working_directory: ~/itunes-api
    docker:
      - image: circleci/ruby:2.5.1-node-browsers
    steps:
      - checkout

      # Restore Cached Dependencies
      - type: cache-restore
        name: Restore bundle cache
        key: itunes-api-{{ checksum "Gemfile.lock" }}

      # Bundle install dependencies
      - run: bundle install --path vendor/bundle

      # Cache Dependencies
      - type: cache-save
        name: Store bundle cache
        key: itunes-api-{{ checksum "Gemfile.lock" }}
        paths:
          - vendor/bundle

      - 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 the tests
      - run:
          name: Run tests
          command: |
            ./cc-test-reporter before-build
            bundle exec rspec
            ./cc-test-reporter after-build --exit-code $?

      # Enforce better practices
      - run: bundle exec rubocop

      - store_test_results:
          path: coverage

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itunes_api-2.4.0 .circleci/config.yml