Sha256: 520015fa63ef60045f94540ae5f62a3c7f77d76c041d3b5f14192423759d910c

Contents?: true

Size: 1.46 KB

Versions: 1

Compression:

Stored size: 1.46 KB

Contents

version: 2.0
init: &init
  run:
    name: init
    command: |
      echo '. .circleci/shared.bash' >> "$BASH_ENV"

jobs:
  test:
    environment:
      CC_TEST_REPORTER_ID: ad21bc049a323138b0a88086069115e9df6dba417912095b7bb17b7a65fc6182
    docker:
      - image: "circleci/ruby:2.7.5"
    working_directory: ~/codeclimate/codeclimate-services
    steps:
      - checkout
      - run:
          name: Setup Coverage
          command: |
           (curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > cc-test-reporter && chmod +x ./cc-test-reporter) || echo "Couldn't download test reporter"
      - run: bundle install && bundle exec rake
      - persist_to_workspace:
          root: .
          paths:
            - coverage
      - run: ./cc-test-reporter after-build --exit-code $? || echo "Send coverage skipped..."

  publish:
    machine: true
    steps:
      - checkout
      - *init
      - run:
          name: Install Hub dependency
          command: install_hub
      - run:
          name: Login on RubyGems
          command: login_to_rubygems
      - run:
          name: Publish new version
          command: |
            if [ `git diff --quiet HEAD~ VERSION; echo $?` -eq 1 ]; then
              publish_new_version
            fi

workflows:
  version: 2
  test:
    jobs:
      - test
      - publish:
          requires:
            - test
          filters:
            branches:
              only:
                - master

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
codeclimate-services-1.11.4 .circleci/config.yml