-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathRakefile
More file actions
51 lines (42 loc) · 1.38 KB
/
Rakefile
File metadata and controls
51 lines (42 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'yard'
desc 'Test Vanagon'
namespace :test do
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |task|
task.rspec_opts = %(--format documentation --color --require spec_helper)
end
desc 'Test Vanagon and calculate test coverage'
task :coverage do
ENV['COVERAGE'] = 'true'
Rake::Task['test:spec'].invoke
end
end
desc 'Run RuboCop'
RuboCop::RakeTask.new(:rubocop) do |task|
task.options << '--display-cop-names'
end
desc 'Generate doc using Yard'
YARD::Rake::YardocTask.new
desc 'Run all spec tests and linters'
task check: %w[test:spec rubocop]
task default: :check
begin
require 'github_changelog_generator/task'
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
config.header = <<~HEADER.chomp
# Changelog
All notable changes to this project will be documented in this file.
HEADER
config.user = 'openvoxproject'
config.project = 'vanagon'
config.exclude_labels = %w[dependencies duplicate question invalid wontfix wont-fix modulesync skip-changelog]
config.future_release = Gem::Specification.load("#{config.project}.gemspec").version
config.since_tag = '0.53.0' # last tag from Perforce
end
rescue LoadError
task :changelog do
abort('Run `bundle install --with release` to install the `github_changelog_generator` gem.')
end
end