Sha256: 9755bda0ee9e576721cf282ee56dba823da7a06fec1c071eb8872a904f7d0b77

Contents?: true

Size: 1.35 KB

Versions: 2

Compression:

Stored size: 1.35 KB

Contents

rubocop:
  name: 'Rubocop analysis'

  run-on:
    - type: branch
      include-match: ^.*$

  context:
    task-defaults:
      environment-variables:
        GIT_REPOSITORY: <%= `git config --get remote.origin.url | awk -F: '{print $NF}' | awk -F. '{print $1}'`.strip %>
        RESULT_PATH: 'tmp/checkstyle.json'

      scripts:
        rubocop:
          start-when:
            - script: bundle
            - script: ruby-version
            - script: tmp-cache

        <% if options.github_comment? %>
        github_comment:
          start-when:
            - script: rubocop
              states: [failed]
        <% end %>

        _cider-ci_include:
          - cider-ci/scripts/bundle.yml
          - cider-ci/scripts/tmp-cache.yml
          - cider-ci/scripts/ruby-version.yml
          - cider-ci/scripts/rubocop.yml
          <% if options.github_comment? %>
          - cider-ci/scripts/github_comment.yml
          <% end %>

      max-auto-trials: 1

      trial-attachments:
        logs:
          include-match: tmp\/checkstyle.json$
          content-type: application/json

      tree-attachments:
        logs:
          include-match: tmp\/checkstyle.json$
          content-type: application/json

    tasks:
      rubocop:
        scripts:
          rubocop: {}
          <% if options.github_comment? %>
          github_comment: {}
          <% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ciderizer-0.2.2 lib/generators/ciderizer/templates/cider-ci/jobs/rubocop.yml
ciderizer-0.2.1 lib/generators/ciderizer/templates/cider-ci/jobs/rubocop.yml