-
-
Notifications
You must be signed in to change notification settings - Fork 478
Expand file tree
/
Copy pathRakefile
More file actions
33 lines (26 loc) · 790 Bytes
/
Copy pathRakefile
File metadata and controls
33 lines (26 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# frozen_string_literal: true
require 'bundler/setup'
require 'bundler/gem_tasks'
require 'rake/clean'
Dir.glob('tasks/**/*.rake').each { |task_file| load task_file }
load 'lib/tasks/ruby_llm.rake'
def run_test_queue_rspec
workers = ENV.fetch('RSPEC_WORKERS', nil)
env = {}
env['TEST_QUEUE_WORKERS'] = workers if workers && !workers.empty? && ENV.fetch('TEST_QUEUE_WORKERS', '').empty?
system(env, 'bundle', 'exec', 'bin/rspec-queue')
end
desc 'Run test suite with rspec-queue'
task :test do
run_test_queue_rspec || abort('Tests failed')
end
desc 'Generate API documentation'
task :rdoc do
sh 'docs/bin/build-api.sh', 'doc'
end
CLOBBER.include 'doc'
desc 'Run overcommit hooks and update models'
task :default do
sh 'overcommit --run'
Rake::Task['models'].invoke
end