Skip to content

Commit

Permalink
add eg tasks for evergreen
Browse files Browse the repository at this point in the history
  • Loading branch information
jamis committed Jan 22, 2024
1 parent 3535b12 commit 555a843
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 555a843

Please sign in to comment.