File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed
Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,13 @@ require 'rubygems'
22require 'rake'
33require 'rubocop/rake_task'
44
5- task : default => :android
5+ task default : :android
66
77# Run sh and ignore exception
8+ # rubocop:disable Lint/HandleExceptions
89def run_sh ( cmd )
9- begin
10- sh cmd
11- rescue
12- end
10+ sh cmd
11+ rescue
1312end
1413
1514# Run cmd. On failure run install and try again.
Original file line number Diff line number Diff line change @@ -2,14 +2,13 @@ require 'rubygems'
22require 'rake'
33require 'rubocop/rake_task'
44
5- task : default => :ios
5+ task default : :ios
66
77# Run sh and ignore exception
8+ # rubocop:disable Lint/HandleExceptions
89def run_sh ( cmd )
9- begin
10- sh cmd
11- rescue
12- end
10+ sh cmd
11+ rescue
1312end
1413
1514# Run cmd. On failure run install and try again.
3231# Run all tests with:
3332# rake ios
3433desc 'Run the iOS tests'
35- task :ios , :args , :test_file do |args , test_file |
34+ task :ios , :args , :test_file do |_args , test_file |
3635 # rake android['ok']
3736 # args = android
3837 # test_file = {:args=>"ok"}
3938 test_file = test_file [ :args ]
4039 cmd = 'bundle exec ruby ./lib/run.rb ios'
41- cmd += %Q ( "#{ test_file } ") if test_file
40+ cmd += %( "#{ test_file } ") if test_file
4241 bash cmd
4342end
4443
You can’t perform that action at this time.
0 commit comments