File tree 2 files changed +10
-12
lines changed
2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,13 @@ require 'rubygems'
2
2
require 'rake'
3
3
require 'rubocop/rake_task'
4
4
5
- task : default => :android
5
+ task default : :android
6
6
7
7
# Run sh and ignore exception
8
+ # rubocop:disable Lint/HandleExceptions
8
9
def run_sh ( cmd )
9
- begin
10
- sh cmd
11
- rescue
12
- end
10
+ sh cmd
11
+ rescue
13
12
end
14
13
15
14
# 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'
2
2
require 'rake'
3
3
require 'rubocop/rake_task'
4
4
5
- task : default => :ios
5
+ task default : :ios
6
6
7
7
# Run sh and ignore exception
8
+ # rubocop:disable Lint/HandleExceptions
8
9
def run_sh ( cmd )
9
- begin
10
- sh cmd
11
- rescue
12
- end
10
+ sh cmd
11
+ rescue
13
12
end
14
13
15
14
# Run cmd. On failure run install and try again.
32
31
# Run all tests with:
33
32
# rake ios
34
33
desc 'Run the iOS tests'
35
- task :ios , :args , :test_file do |args , test_file |
34
+ task :ios , :args , :test_file do |_args , test_file |
36
35
# rake android['ok']
37
36
# args = android
38
37
# test_file = {:args=>"ok"}
39
38
test_file = test_file [ :args ]
40
39
cmd = 'bundle exec ruby ./lib/run.rb ios'
41
- cmd += %Q ( "#{ test_file } ") if test_file
40
+ cmd += %( "#{ test_file } ") if test_file
42
41
bash cmd
43
42
end
44
43
You can’t perform that action at this time.
0 commit comments