From 12b5153604839658c1188f47031d0a54ab5687dc Mon Sep 17 00:00:00 2001 From: cn Date: Fri, 4 Dec 2020 09:17:11 +0100 Subject: [PATCH] gem: refactor Rakefile solargraph tasks, include in default task --- Rakefile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Rakefile b/Rakefile index 285e318..c8bcb4d 100644 --- a/Rakefile +++ b/Rakefile @@ -9,16 +9,18 @@ RSpec::Core::RakeTask.new(:spec) RuboCop::RakeTask.new Bundler::Audit::Task.new -desc 'Should be run by developer once to prepare initial solargraph usage (fill caches etc.)' -task :'solargraph:init' do - sh 'solargraph download-core' -end - desc 'Run experimental solargraph type checker' -task :'solargraph:tc' do +task :solargraph do sh 'solargraph typecheck' end -task default: [:rubocop, :spec, 'bundle:audit'] +namespace :solargraph do + desc 'Should be run by developer once to prepare initial solargraph usage (fill caches etc.)' + task :init do + sh 'solargraph download-core' + end +end -task ci: [:default, :'solargraph:init', :'solargraph:tc'] +task default: [:rubocop, :spec, 'bundle:audit', :solargraph] + +task ci: ['solargraph:init', :default]