Skip to content

Commit c9e55f7

Browse files
authored
convenience tasks for evergreen (#5720)
1 parent 60eb57d commit c9e55f7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Rakefile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,32 @@ RSpec::Core::RakeTask.new('spec:progress') do |spec|
4141
spec.pattern = "spec/**/*_spec.rb"
4242
end
4343

44+
desc 'Build and validate the evergreen config'
45+
task eg: %w[ eg:build eg:validate ]
46+
47+
# 'eg' == 'evergreen', but evergreen is too many letters for convenience
48+
namespace :eg do
49+
desc 'Builds the .evergreen/config.yml file from the templates'
50+
task :build do
51+
ruby '.evergreen/update-evergreen-configs'
52+
end
53+
54+
desc 'Validates the .evergreen/config.yml file'
55+
task :validate do
56+
system 'evergreen validate --project mongoid .evergreen/config.yml'
57+
end
58+
59+
desc 'Updates the evergreen executable to the latest available version'
60+
task :update do
61+
system 'evergreen get-update --install'
62+
end
63+
64+
desc 'Runs the current branch as an evergreen patch'
65+
task :patch do
66+
system 'evergreen patch --uncommitted --project mongoid --browse --auto-description --yes'
67+
end
68+
end
69+
4470
CLASSIFIERS = [
4571
[%r,^mongoid/attribute,, :attributes],
4672
[%r,^mongoid/association/[or],, :associations_referenced],

0 commit comments

Comments
 (0)