Sha256: 2bf34419a7689498c5a53d59d59bd7d5f88751d23ce994f66195f719fda5751b

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

version: 2.1

parameters:
  project_name:
    type: string
    default: ilove-tracing
  ruby_image:
    type: string
    default: circleci/ruby:2.6.5

jobs:
  test_app_code:
    parameters:
      cache_name:
        type: string
        default: << pipeline.parameters.project_name >>-cache-{{ checksum "<< pipeline.parameters.project_name >>.gemspec" }}
    working_directory: ~/src
    docker:
      - image: << pipeline.parameters.ruby_image >>
    steps:
      - checkout
      - setup_remote_docker:
          docker_layer_caching: true
      - restore_cache:
          keys:
            - << parameters.cache_name >>
      - run:
          name: Bundle install
          command: bundle install --path ~/.bundler
      - save_cache:
          key: << parameters.cache_name >>
          paths:
            - ~/.bundler
      - run:
          name: Rspec
          command: bundle exec rspec --out /tmp/test-results/rspec.xml

workflows:
  version: 2
  app:
    jobs:
      - test_app_code:
          filters:
            tags:
              only: /.*/

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ilove-tracing-0.2.0 .circleci/config.yml