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

42 lines
801 B
Text
Raw Normal View History

2017-07-20 15:33:29 -04:00
# frozen_string_literal: true
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
2017-07-20 15:33:29 -04:00
task default: %i[spec lint]
2015-07-25 03:31:14 -04:00
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
2015-07-25 03:24:48 -04:00
2017-07-20 15:26:02 -04:00
task lint: :rubocop
2015-07-25 03:24:48 -04:00
2017-07-20 15:25:37 -04:00
task fix: 'rubocop:auto_correct'
2015-07-25 03:24:48 -04:00
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
2015-07-25 09:20:40 -04:00
require 'rake/extensiontask'
Rake::ExtensionTask.new 'tox' do |ext|
ext.lib_dir = 'lib/tox'
end