Sha256: 45fdd8aa6236706e1adecfc1a60ed95f44f6daef26018e72903416c8c1219bde

Contents?: true

Size: 1.61 KB

Versions: 6

Compression:

Stored size: 1.61 KB

Contents

version: 2

references:
  steps: &steps
    - checkout

    - type: shell
      name: Write RAILS_VERSION to a file so we can use it for caching purposes
      command: echo "$RAILS_VERSION" > ~/RAILS_VERSION.txt

    - type: cache-restore
      key: coach-bundler-{{ checksum "coach.gemspec" }}-{{ checksum "~/RAILS_VERSION.txt" }}

    - run: gem install bundler -v 1.11.2

    - run: bundle install --path vendor/bundle

    - type: cache-save
      key: coach-bundler-{{ checksum "coach.gemspec" }}-{{ checksum "~/RAILS_VERSION.txt" }}
      paths:
        - vendor/bundle

    - type: shell
      command: |
        bundle exec rspec --profile 10 \
                          --format RspecJunitFormatter \
                          --out /tmp/test-results/rspec.xml \
                          --format progress \
                          spec

    - type: store_test_results
      path: /tmp/test-results

    - run: bundle exec rubocop
jobs:
  build-ruby24-rails515:
    docker:
      - image: ruby:2.4
        environment:
          - RAILS_VERSION=5.1.5
    steps: *steps
  build-ruby24-rails4210:
    docker:
      - image: ruby:2.4
        environment:
          - RAILS_VERSION=4.2.10
    steps: *steps
  build-ruby25-rails515:
    docker:
      - image: ruby:2.5
        environment:
          - RAILS_VERSION=5.1.5
    steps: *steps
  build-ruby25-rails4210:
    docker:
      - image: ruby:2.5
        environment:
          - RAILS_VERSION=4.2.10
    steps: *steps

workflows:
  version: 2
  tests:
    jobs:
      - build-ruby24-rails515
      - build-ruby24-rails4210
      - build-ruby25-rails515
      - build-ruby25-rails4210

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
coach-2.3.0 .circleci/config.yml
coach-2.2.2 .circleci/config.yml
coach-2.2.1 .circleci/config.yml
coach-2.2.0 .circleci/config.yml
coach-2.1.0 .circleci/config.yml
coach-2.0.0 .circleci/config.yml