From 555a843ba8c3a6defdf5fe899f4e0d2cac684865 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Mon, 22 Jan 2024 16:06:50 -0700 Subject: [PATCH] add `eg` tasks for evergreen --- Rakefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Rakefile b/Rakefile index 93578ae1b7..627e39389a 100644 --- a/Rakefile +++ b/Rakefile @@ -119,6 +119,32 @@ end task :release => ['release:check_private_key', 'release:do'] +desc 'Build and validate the evergreen config' +task eg: %w[ eg:build eg:validate ] + +# 'eg' == 'evergreen', but evergreen is too many letters for convenience +namespace :eg do + desc 'Builds the .evergreen/config.yml file from the templates' + task :build do + ruby '.evergreen/update-evergreen-configs' + end + + desc 'Validates the .evergreen/config.yml file' + task :validate do + system 'evergreen validate --project mongo-ruby-driver .evergreen/config.yml' + end + + desc 'Updates the evergreen executable to the latest available version' + task :update do + system 'evergreen get-update --install' + end + + desc 'Runs the current branch as an evergreen patch' + task :patch do + system 'evergreen patch --uncommitted --project mongo-ruby-driver --browse --auto-description --yes' + end +end + desc "Generate all documentation" task :docs => 'docs:yard'