-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
40 lines (31 loc) · 988 Bytes
/
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
40
require 'bundler/gem_tasks'
require 'rake/testtask'
Rake::TestTask.new(:test) do |t|
t.libs << 'test'
t.libs << 'lib'
t.test_files = FileList['test/**/*_test.rb']
end
desc 'Bump patch version'
task :patch do
system 'gem bump --tag'
end
desc 'Bump minor version'
task :minor do
system 'gem bump --version minor --tag'
end
desc 'Bump major version'
task :major do
system 'gem bump --version major --tag'
end
task publish: [:build] do
$VERBOSE = nil
load 'jekyll_emoji_tag/version.rb'
system "gem push pkg/jekyll_emoji_tag-#{JekyllEmojiTag::VERSION}.gem"
end
desc 'Bump patch version, create git tag, build the gem and release to geminabox (default)'
task release_patch: %i[test patch publish]
desc 'Bump minor version, create git tag, build the gem and release to geminabox'
task release_minor: %i[test minor publish]
desc 'Bump major version, create git tag, build the gem and release to geminabox'
task release_major: %i[test major publish]
task default: :test