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)
4
4
FileList [ "spec/#{ dir } /*_spec.rb" ] . shuffle . join ( ' ' )
5
5
end
6
6
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
+
7
17
desc 'Runs all the specs'
8
18
task :specs do
9
19
sh "bundle exec bacon #{ specs ( '**' ) } "
10
20
end
11
21
12
22
desc 'Setup example project'
13
23
task :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 )
21
25
end
22
26
23
27
desc 'Update lock files'
24
28
task :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
31
30
end
32
31
33
32
desc 'Publish to cocoapods plugins if not present'
You can’t perform that action at this time.
0 commit comments