-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRakefile
More file actions
42 lines (37 loc) · 1.05 KB
/
Rakefile
File metadata and controls
42 lines (37 loc) · 1.05 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
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task default: :spec
# TODO: Move checks into gem
namespace :parallel_appium do
desc 'Validate Android'
task :validate_android do
%x(which emulator 2>&1)
puts '==========================================='
can_do_android = true
can_do_android = can_do_android && ($? == 0)
if can_do_android
puts "emulator command configured properly"
else
puts "emulator command not configured properly"
exit
end
puts '==========================================='
puts 'Android good to go'
end
desc 'Validate iOS'
task :validate_ios do
%x(which instruments 2>&1)
puts '==========================================='
can_do_ios = true
can_do_ios = can_do_ios && ($? == 0)
if can_do_ios
puts "instruments command configured properly"
else
puts "instruments command not configured properly"
exit
end
puts '==========================================='
puts 'iOS good to go'
end
end