forked from jenkinsci/jenkins.rb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
24 lines (21 loc) · 698 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
namespace :test do
desc 'Run the tests for the jpi tool'
task :ruby_runtime do
sh 'cd ruby-runtime && bundle install && rake spec'
end
desc 'Run the tests for the jpi tool'
task :jpi do
sh 'cd ruby-tools/jpi && bundle install && rake cucumber'
end
desc 'Run the tests for the jenkins.rb CLI'
task :cli do
if RUBY_PLATFORM == "java"
STDERR.puts("FIXME: Skip running cli tests since some of dependency libraries are not working expectedly on JRuby 1.6/1.7.")
else
sh 'cd ruby-tools/cli && bundle install && rake spec cucumber'
end
end
end
desc 'Run all the tests'
task :test => ['test:ruby_runtime', 'test:jpi', 'test:cli']
task :default => :test