Sha256: b694fe7858713b046b3c2d5cb02244bdf4981e86116a46c7712187629f8740cb

Contents?: true

Size: 1.9 KB

Versions: 2

Compression:

Stored size: 1.9 KB

Contents

version: 2
jobs:
  build:
    docker:
      - image: circleci/ruby:2.6.1-node-browsers
    working_directory: ~/repo
    steps:
      - checkout
      - setup_remote_docker:
          reusable: true
      - run:
          name: Install dependencies
          command: |
            .circleci/install_dep.sh
      - run:
          name: Builder
          command: |
            rake build -t -v
            cp -R pkg /tmp
      - persist_to_workspace:
          root: /tmp
          paths:
            - pkg

  unit_test:
    docker:
      - image: circleci/ruby:2.6.1-node-browsers
    working_directory: ~/repo
    steps:
      - attach_workspace:
          at: /tmp
      - checkout
      - setup_remote_docker:
          reusable: true
      - run:
          name: Install dependencies
          command: |
            .circleci/install_dep.sh
      - run:
          name: Run unit tests
          command: |
            bundle exec rake test -t -v

  func_test_main:
    docker:
      - image: circleci/ruby:2.6.1-node-browsers
    working_directory: ~/repo
    steps:
      - checkout
      - setup_remote_docker:
          reusable: true
      - run:
          name: trigger
          command: |
            .circleci/trigger_func_test.sh main

  func_test_develop:
    docker:
      - image: circleci/ruby:2.6.1-node-browsers
    working_directory: ~/repo
    steps:
      - checkout
      - setup_remote_docker:
          reusable: true
      - run:
          name: trigger
          command: |
            .circleci/trigger_func_test.sh develop

workflows:
  version: 2
  build_test_push:
    jobs:
      - build:
          filters:
            branches:
              ignore: 
                - /^release\/.*/
                - main
      - unit_test:
          requires:
            - build
      - func_test_main:
          requires:
            - unit_test
      - func_test_develop:
          requires:
            - unit_test

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fluent-plugin-k8s-metrics-agg-1.1.6 .circleci/config.yml
fluent-plugin-k8s-metrics-agg-1.1.5 .circleci/config.yml