Sha256: 0ac4bbaeb113802e2e1bce6bee1419af414f5263534bb52518e9a7729fad6820

Contents?: true

Size: 1.37 KB

Versions: 19

Compression:

Stored size: 1.37 KB

Contents

# Advanced CircleCI workflow config with file sharing
# and separate jobs for tests and running coverage checks.

version: 2
jobs:
  test:
    docker:
      - image: circleci/ruby:2.5-browsers
    steps:
      - checkout
      - run:
          name: Install dependencies
          command: |
            sudo apt-get install cmake
            bundle install
      - run:
          name: Run RSpec
          command: |
            mkdir -p /tmp/coverage
            bundle exec rspec
      - run:
          name: Store coverage report
          command: mv coverage/lcov/project.lcov /tmp/coverage/
      - persist_to_workspace:
          root: /tmp/coverage
          paths: .
      - store_artifacts:
          path: /tmp/coverage
          destination: coverage
  analyse_coverage:
    docker:
      - image: circleci/ruby:2.5-browsers
    steps:
      - checkout
      - attach_workspace:
          at: /tmp/coverage # gives access to project's LCOV report
      - run:
          name: Check coverage
          command: |
            sudo apt-get install cmake
            gem install undercover
            undercover --lcov /tmp/coverage/project.lcov \
                       --compare origin/master

workflows:
  version: 2
  build_and_test:
    jobs:
      - test
      - analyse_coverage:
          requires:
            - test
          filters:
            branches:
              ignore: master

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
undercover-0.6.3 docs/circleci_advanced.yml
undercover-0.6.2 docs/circleci_advanced.yml
undercover-0.6.1 docs/circleci_advanced.yml
undercover-0.6.0 docs/circleci_advanced.yml
undercover-0.5.0 docs/circleci_advanced.yml
undercover-0.4.7 docs/circleci_advanced.yml
undercover-0.4.6 docs/circleci_advanced.yml
undercover-0.4.5 docs/circleci_advanced.yml
undercover-0.4.4 docs/circleci_advanced.yml
undercover-0.4.3 docs/circleci_advanced.yml
undercover-0.4.1 docs/circleci_advanced.yml
undercover-0.4.0 docs/circleci_advanced.yml
undercover-0.3.4 docs/circleci_advanced.yml
undercover-0.3.3 docs/circleci_advanced.yml
undercover-0.3.2 docs/circleci_advanced.yml
undercover-0.3.1 docs/circleci_advanced.yml
undercover-0.3.0 docs/circleci_advanced.yml
undercover-0.2.3 docs/circleci_advanced.yml
undercover-0.2.2 docs/circleci_advanced.yml