Repository navigation
Expand file tree
/
Copy pathRakefile
More file actions
65 lines (56 loc) · 2.18 KB
/
Copy pathRakefile
File metadata and controls
65 lines (56 loc) · 2.18 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# encoding: utf-8
ENV["BRANCH"] = 'main'
require 'rubygems'
require 'rake'
require 'juwelier'
Juwelier::Tasks.new do |gem|
# gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
gem.name = "scout-ai"
gem.homepage = "http://github.com/mikisvaz/scout-ai"
gem.license = "MIT"
gem.summary = %Q{AI gear for scouts}
gem.description = %Q{assorted functionalities to help scouts use AI}
gem.email = "mikisvaz@gmail.com"
gem.authors = ["Miguel Vazquez"]
# dependencies defined in Gemfile
gem.add_runtime_dependency 'scout-rig', '>= 0'
gem.add_runtime_dependency 'ruby-openai', '>= 0'
gem.add_runtime_dependency 'ollama-ai', '>= 0'
gem.add_runtime_dependency 'ruby-mcp-client', '>= 0'
gem.add_runtime_dependency 'hnswlib', '>= 0'
end
Juwelier::RubygemsDotOrgTasks.new
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
# Unit tests only: real-infrastructure tests live under test/integration
# and are collected by the separate :test_integration task.
# ScoutCoder: Rake::TestTask#file_list concatenates pattern and test_files,
# so setting pattern here would leak test/integration/** into `rake test`;
# assigning only the already-excluded FileList to test_files keeps the
# default suite unit-only.
test.test_files = FileList['test/**/test_*.rb'].exclude('test/integration/**/test_*.rb')
test.verbose = true
end
desc "Run infrastructure tests (test/integration/**/test_*.rb): real inference through the 'test' endpoint or the default, plus per-backend endpoint probes"
Rake::TestTask.new(:test_infrastructure) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/integration/**/test_*.rb'
test.verbose = true
end
desc "Alias of test_infrastructure"
task :test_integration => :test_infrastructure
desc "Code coverage detail"
task :simplecov do
ENV['COVERAGE'] = "true"
Rake::Task['test'].execute
end
task :default => :test
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "scout-ai #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end