mirror of
https://github.com/cmur2/openvpn-status-web.git
synced 2024-11-17 06:56:13 +01:00
28 lines
649 B
Ruby
28 lines
649 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'bundler/gem_tasks'
|
|
require 'rspec/core/rake_task'
|
|
require 'rubocop/rake_task'
|
|
require 'bundler/audit/task'
|
|
|
|
RSpec::Core::RakeTask.new(:spec)
|
|
RuboCop::RakeTask.new
|
|
Bundler::Audit::Task.new
|
|
|
|
desc 'Run experimental solargraph type checker'
|
|
task :solargraph do
|
|
sh 'solargraph typecheck'
|
|
end
|
|
|
|
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]
|
|
|
|
desc 'Run all tasks desired for CI'
|
|
task ci: ['solargraph:init', :default]
|