Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rake task that can be used on CI #3

Closed
pivotalcommon opened this issue Jul 11, 2011 · 1 comment
Closed

Add rake task that can be used on CI #3

pivotalcommon opened this issue Jul 11, 2011 · 1 comment

Comments

@pivotalcommon
Copy link
Contributor

As a developer
I want to be able to add a rake task to my CI build that will fail if there are license action items to address
So that I don't inadvertently add a dependency to my app that the client doesn't want

One option would be to add a new rake task like so:

namespace :license do
  desc 'checks whether there are action items and returns a 0 or a 1 - useful for ci'
  task :check => :generate_dependencies do
    action_items = LicenseFinder::Finder.new.action_items
    if action_items.present?
      puts "License action items:", action_items
      exit -1
    else
      exit 0
    end
  end
end

The other option would be to update the license:actions task to exit with a non-zero return code if there are any actions to take.

Charles LeRose and Jeff Dean

@pivotalcommon
Copy link
Contributor Author

This can be achieved by using rake action_items:ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant