File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -4,30 +4,29 @@ def specs(dir)
44 FileList [ "spec/#{ dir } /*_spec.rb" ] . shuffle . join ( ' ' )
55end
66
7+ def setup_project ( pod_install = false )
8+ system ( 'bundle install' , exception : true )
9+ Bundler . with_unbundled_env do
10+ Dir . chdir ( 'example/ios_app' ) do |path |
11+ system ( 'bundle install' , exception : true )
12+ system ( 'bundle exec pod install' , exception : true ) if pod_install
13+ end
14+ end
15+ end
16+
717desc 'Runs all the specs'
818task :specs do
919 sh "bundle exec bacon #{ specs ( '**' ) } "
1020end
1121
1222desc 'Setup example project'
1323task :demo do
14- system ( 'bundle install' , exception : true )
15- Bundler . with_unbundled_env do
16- Dir . chdir ( 'example/ios_app' ) do |path |
17- system ( 'bundle install' , exception : true )
18- system ( 'bundle exec pod install' , exception : true )
19- end
20- end
24+ setup_project ( true )
2125end
2226
2327desc 'Update lock files'
2428task :update do
25- system ( 'bundle install' , exception : true )
26- Bundler . with_unbundled_env do
27- Dir . chdir ( 'example/ios_app' ) do |path |
28- system ( 'bundle install' , exception : true )
29- end
30- end
29+ setup_project
3130end
3231
3332desc 'Publish to cocoapods plugins if not present'
You can’t perform that action at this time.
0 commit comments