-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Rakefile
39 lines (32 loc) · 1.19 KB
/
Rakefile
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
# frozen_string_literal: true
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require_relative 'config/application'
Rails.application.load_tasks
begin
require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop) do |task|
# These make the rubocop experience maybe slightly less terrible
task.options = ['-D', '-S', '-E']
end
rescue LoadError
desc 'rubocop is not available in this installation'
task rubocop: :environment do
raise 'rubocop is not available in this installation'
end
end
desc 'Display the list of available rake tasks'
task help: :environment do
system('rake -T')
end
begin
require 'github_changelog_generator/task'
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
config.header = "# Changelog\n\nAll notable changes to this project will be documented in this file."
config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog]
config.user = 'voxpupuli'
config.project = 'vox-pupuli-tasks'
config.future_release = 'v1.0.1'
end
rescue LoadError # rubocop:disable Lint/SuppressedException
end