-
Notifications
You must be signed in to change notification settings - Fork 4
/
Rakefile
31 lines (25 loc) · 777 Bytes
/
Rakefile
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
desc 'run all the specs'
task spec: %w(spec:unit spec:system)
namespace :spec do
require 'rspec/core/rake_task'
desc 'run all of the system tests'
RSpec::Core::RakeTask.new(:system) do |t|
t.pattern = FileList['spec/system/**/*_spec.rb']
end
desc 'run all of the unit tests'
RSpec::Core::RakeTask.new(:unit) do |t|
t.pattern = FileList['spec/unit/**/*_spec.rb']
end
end
namespace :packages do
desc 'list blobs'
task :blobs do
$LOAD_PATH.unshift(File.expand_path('src/london_blob_checker/lib'))
require 'london_blob_checker/blob_config_scanner'
packages = LondonBlobChecker::BlobConfigScanner.new('config/blobs.yml').packages
packages.each do |p|
puts "Package #{p.name}\t#{p.version}"
end
end
end
task default: :spec