1
0
mirror of https://github.com/cmur2/openvpn-status-web.git synced 2024-12-22 12:54:24 +01:00

gem: refactor Rakefile solargraph tasks, include in default task

This commit is contained in:
cn 2020-12-04 09:17:11 +01:00
parent 7c0722e875
commit 12b5153604

View File

@ -9,16 +9,18 @@ RSpec::Core::RakeTask.new(:spec)
RuboCop::RakeTask.new RuboCop::RakeTask.new
Bundler::Audit::Task.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' desc 'Run experimental solargraph type checker'
task :'solargraph:tc' do task :solargraph do
sh 'solargraph typecheck' sh 'solargraph typecheck'
end 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]