Skip to content

rcmachado/danger-circleci

Repository files navigation

danger-circleci

Build Status

Interact with CircleCI artifacts

Installation

$ gem install danger-circleci

Currently we test on ruby 2.3.4 and 2.4.1, but probably runs fine on other versions.

Usage

To show links to artifacts
artifacts = [
  {
    'title' => 'Test Report',
    'path' => "#{ENV['CIRCLE_TEST_REPORTS']}/test/report.html"
  },
  {
    'title' => 'Code Coverage Report',
    'path' => "#{ENV['CIRCLE_TEST_REPORTS']}/cov/index.html"
  }
]
circleci.artifacts_links artifacts

Methods

artifacts_links - Show links for build artifacts should_display_message - Checks if we can display the links to artifacts

Development

  1. Clone this repo
  2. Run bundle install to setup dependencies.
  3. Run bundle exec rake spec to run the tests.
  4. Use bundle exec guard to automatically have tests run as you make changes.
  5. Make your changes.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages