-
Notifications
You must be signed in to change notification settings - Fork 102
/
Rakefile
45 lines (37 loc) · 1.09 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
require 'byebug'
require 'require_all'
require 'rspec/core/rake_task'
require_relative 'scripts/curate_ready'
require_relative 'scripts/helpers'
# removed because of travis mechanize issues
#require_rel 'scripts'
desc 'Run the specs by default'
task default: :spec
RSpec::Core::RakeTask.new(:spec)
namespace :pull do
# Commented out for travis build
# desc 'Initialize CVE ymls from Tomcat website'
# task :cves do
# PullLatestCVEs.new.run
# end
desc 'Clone all the Tomcat source repos'
task :repo do
Dir.chdir("tmp/") do
`git clone https://github.com/apache/tomcat.git`
`git clone https://github.com/apache/tomcat55.git`
`git clone https://github.com/apache/tomcat70.git`
`git clone https://github.com/apache/tomcat80.git`
`git clone https://github.com/apache/tomcat85.git`
end
end
end
namespace :curate do
desc 'List all CVEs with a fix and not curated'
task :ready do
CurateReady.new.print_readiness(true)
end
desc 'List all CVEs without a fix and not curated'
task :not_ready do
CurateReady.new.print_readiness(false)
end
end