toxon
/
lita-tox
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

38 lines
739 B
Ruby
Raw Normal View History

2015-07-25 08:07:37 +00: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 07:24:48 +00:00
2015-07-25 07:31:14 +00:00
task default: [:spec, :lint]
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
2015-07-25 07:24:48 +00:00
task lint: [:rubocop]
require 'rubocop/rake_task'
RuboCop::RakeTask.new
2015-07-25 08:02:30 +00:00
require 'yard'
YARD::Rake::YardocTask.new
2015-07-25 08:07:37 +00: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
2015-07-25 13:20:40 +00:00
require 'rake/extensiontask'
Rake::ExtensionTask.new 'tox' do |ext|
ext.lib_dir = 'lib/tox'
end