Archived
1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lita-tox/Rakefile

32 lines
639 B
Text
Raw Normal View History

2015-07-25 04:07:37 -04:00
require 'rubygems'
gemspec = Gem::Specification.load('lita-tox.gemspec')
github_user, github_project =
gemspec.homepage.scan(%r{^https://github\.com/([^/]+)/([^/]+)/?$})[0]
require 'bundler/gem_tasks'
2015-07-25 03:24:48 -04:00
2015-07-25 03:31:14 -04:00
task default: [:spec, :lint]
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
2015-07-25 03:24:48 -04:00
task lint: [:rubocop]
require 'rubocop/rake_task'
RuboCop::RakeTask.new
2015-07-25 04:02:30 -04:00
require 'yard'
YARD::Rake::YardocTask.new
2015-07-25 04:07:37 -04:00
desc 'Generate changelog'
task :changelog, [:token] do |_t, args|
cmd = 'github_changelog_generator'
cmd << " -u #{github_user}"
cmd << " -p #{github_project}"
cmd << " -t #{args[:token]}" if args[:token]
sh cmd
end