2020-03-07 01:30:57 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-05-03 15:32:08 +02:00
|
|
|
require 'bundler/gem_tasks'
|
|
|
|
require 'rspec/core/rake_task'
|
2020-03-02 01:57:58 +01:00
|
|
|
require 'rubocop/rake_task'
|
2019-12-18 20:19:56 +01:00
|
|
|
require 'bundler/audit/task'
|
2013-05-03 15:32:08 +02:00
|
|
|
|
|
|
|
RSpec::Core::RakeTask.new(:spec)
|
2020-03-02 01:57:58 +01:00
|
|
|
RuboCop::RakeTask.new
|
2019-12-18 20:19:56 +01:00
|
|
|
Bundler::Audit::Task.new
|
2013-05-03 15:32:08 +02:00
|
|
|
|
2020-03-01 22:05:43 +01:00
|
|
|
desc 'Run experimental solargraph type checker'
|
2020-12-04 09:17:11 +01:00
|
|
|
task :solargraph do
|
2020-03-01 22:05:43 +01:00
|
|
|
sh 'solargraph typecheck'
|
|
|
|
end
|
|
|
|
|
2020-12-04 09:17:11 +01:00
|
|
|
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 default: [:rubocop, :spec, 'bundle:audit', :solargraph]
|
2020-03-01 22:05:43 +01:00
|
|
|
|
2020-12-25 18:16:27 +01:00
|
|
|
desc 'Run all tasks desired for CI'
|
2020-12-04 09:17:11 +01:00
|
|
|
task ci: ['solargraph:init', :default]
|