Sha256: a1f3facd3119dfeb37fb557d78524eabe904c0f1ee0695148d281f70cc2b3102

Contents?: true

Size: 1.68 KB

Versions: 1

Compression:

Stored size: 1.68 KB

Contents

version: 2

shared: &shared
  working_directory: ~/repo
  steps:
    - checkout

    # Download and cache dependencies
    - restore_cache:
        keys:
          - v1-dependencies-{{ checksum "Gemfile.lock" }}
          # fallback to using the latest cache if no exact match is found
          - v1-dependencies-

    - run:
        name: install dependencies
        command: |
          bundle install --jobs=4 --retry=3 --path vendor/bundle

    - save_cache:
        paths:
          - ./vendor/bundle
        key: v1-dependencies-{{ checksum "Gemfile.lock" }}

    # run tests!
    - run:
        name: run tests
        command: bundle exec rake

jobs:
  # RAILS_VERSION=5.1.6
  "ruby-2.4/rails-5.1.6":
    <<: *shared
    docker:
      - image: circleci/ruby:2.4
    environment:
      RAILS_VERSION=5.1.6

  "ruby-2.5/rails-5.1.6":
    <<: *shared
    docker:
      - image: circleci/ruby:2.5
    environment:
      RAILS_VERSION=5.1.6

  "ruby-2.6/rails-5.1.6":
    <<: *shared
    docker:
      - image: circleci/ruby:2.6
    environment:
      RAILS_VERSION=5.1.6

  # RAILS_VERSION=5.2.2
  "ruby-2.4/rails-5.2.2":
    <<: *shared
    docker:
      - image: circleci/ruby:2.4
    environment:
      RAILS_VERSION=5.2.2

  "ruby-2.5/rails-5.2.2":
    <<: *shared
    docker:
      - image: circleci/ruby:2.5
    environment:
      RAILS_VERSION=5.2.2

  "ruby-2.6/rails-5.2.2":
    <<: *shared
    docker:
      - image: circleci/ruby:2.6
    environment:
      RAILS_VERSION=5.2.2

workflows:
  version: 2
  build:
    jobs:
      - "ruby-2.4/rails-5.1.6"
      - "ruby-2.5/rails-5.1.6"
      - "ruby-2.6/rails-5.1.6"
      - "ruby-2.4/rails-5.2.2"
      - "ruby-2.5/rails-5.2.2"
      - "ruby-2.6/rails-5.2.2"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activevalidators-5.1.0 .circleci/config.yml