-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
39 lines (29 loc) · 1.15 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
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
require "rubocop/rake_task"
RuboCop::RakeTask.new
require "cucumber/rake/task"
Cucumber::Rake::Task.new
task default: %i[spec cucumber]
file "lib/yaml/sort/parser.rb": ["lib/yaml/sort/parser.ra"] do
sh "racc --output-status --output-file=lib/yaml/sort/parser.rb lib/yaml/sort/parser.ra"
end
task spec: ["lib/yaml/sort/parser.rb"]
task cucumber: ["lib/yaml/sort/parser.rb"]
require "github_changelog_generator/task"
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
config.future_release = "v#{Yaml::Sort::VERSION}"
config.header = <<~HEADER.chomp
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
HEADER
config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog ignore]
config.user = "smortex"
config.project = "yaml-sort"
config.since_tag = "v1.0.0"
config.issues = false
end