Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
c6b1ee61
Commit
c6b1ee61
authored
Mar 29, 2014
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Rakefile] Temporarily fix examples
parent
fb1efd8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
27 deletions
+31
-27
Rakefile
Rakefile
+31
-27
No files found.
Rakefile
View file @
c6b1ee61
...
...
@@ -7,6 +7,33 @@ def execute_command(command)
end
end
# Bootstrap task
#-----------------------------------------------------------------------------#
desc
"Initializes your working copy to run the specs"
task
:bootstrap
,
:use_bundle_dir?
do
|
t
,
args
|
title
"Environment bootstrap"
puts
"Updating submodules"
execute_command
"git submodule update --init --recursive"
puts
"Installing gems"
if
args
[
:use_bundle_dir?
]
execute_command
"env XCODEPROJ_BUILD=1 bundle install --path ./travis_bundle_dir"
else
execute_command
"env XCODEPROJ_BUILD=1 bundle install"
end
puts
"Checking for hg and bzr..."
if
`which hg`
.
strip
.
empty?
puts
"Please install Mercurial: `brew install hg`"
end
if
`which bzr`
.
strip
.
empty?
puts
"Please install Bazaar: `brew install bzr`"
end
end
#-----------------------------------------------------------------------------#
namespace
:gem
do
...
...
@@ -330,7 +357,10 @@ namespace :examples do
task
:build
do
Dir
.
chdir
(
"examples/AFNetworking Example"
)
do
puts
"Installing Pods"
pod_command
=
ENV
[
'FROM_GEM'
]
?
'sandbox-pod'
:
'bundle exec ../../bin/sandbox-pod'
# pod_command = ENV['FROM_GEM'] ? 'sandbox-pod' : 'bundle exec ../../bin/sandbox-pod'
# TODO: The sandbox is blocking local git repos making bundler crash
pod_command
=
ENV
[
'FROM_GEM'
]
?
'sandbox-pod'
:
'bundle exec ../../bin/pod'
execute_command
"rm -rf Pods"
execute_command
"
#{
pod_command
}
install --verbose --no-repo-update"
...
...
@@ -357,32 +387,6 @@ end
#-----------------------------------------------------------------------------#
desc
"Initializes your working copy to run the specs"
task
:bootstrap
,
:use_bundle_dir?
do
|
t
,
args
|
title
"Environment bootstrap"
puts
"Updating submodules"
execute_command
"git submodule update --init --recursive"
puts
"Installing gems"
if
args
[
:use_bundle_dir?
]
execute_command
"env XCODEPROJ_BUILD=1 bundle install --path ./travis_bundle_dir"
else
execute_command
"env XCODEPROJ_BUILD=1 bundle install"
end
puts
"Checking for hg and bzr..."
if
`which hg`
.
strip
.
empty?
puts
"Please install Mercurial: `brew install hg`"
end
if
`which bzr`
.
strip
.
empty?
puts
"Please install Bazaar: `brew install bzr`"
end
end
#-----------------------------------------------------------------------------#
desc
"Run all specs"
task
:spec
=>
'spec:all'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment