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
e68500b1
Commit
e68500b1
authored
Nov 24, 2014
by
Eloy Durán
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "[Rake] Check required binaries"
This reverts commit
581eb06a
. Conflicts: Rakefile
parent
8a94be75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
22 deletions
+4
-22
Rakefile
Rakefile
+4
-22
No files found.
Rakefile
View file @
e68500b1
REQUIRED_COMMANDS
=
%w[ git hg ]
# Task check_requirements
#-----------------------------------------------------------------------------#
desc
'Verifies that the required third-party commands are available'
task
:check_requirements
do
has_all_requirements
=
REQUIRED_COMMANDS
.
reduce
(
true
)
do
|
has_requirements
,
required_command
|
result
=
required_binary?
(
required_command
)
puts
red
(
"Missing required command:
#{
required_command
}
. You may need to install it."
)
unless
result
has_requirements
&&
result
end
raise
unless
has_all_requirements
end
# Bootstrap task
#-----------------------------------------------------------------------------#
desc
"Initializes your working copy to run the specs"
task
:bootstrap
,
[
:use_bundle_dir?
]
=>
[
:check_requirements
]
do
|
_
t
,
args
|
task
:bootstrap
,
:use_bundle_dir?
do
|
t
,
args
|
title
"Environment bootstrap"
puts
"Updating submodules"
...
...
@@ -126,8 +112,8 @@ begin
#--------------------------------------#
desc
"Run the integration spec"
task
:integration
=>
:check_requirements
do
unless
File
.
exist?
(
'spec/cocoapods-integration-specs'
)
task
:integration
do
unless
File
.
exist
s
?
(
'spec/cocoapods-integration-specs'
)
$stderr
.
puts
red
(
"Integration files not checked out. Run `rake bootstrap`"
)
exit
1
end
...
...
@@ -141,7 +127,7 @@ begin
# The specs helper interfere with the integration 2 specs and thus they need
# to be run separately.
#
task
:all
=>
[
:unpack_fixture_tarballs
,
:check_requirements
]
do
task
:all
=>
:unpack_fixture_tarballs
do
ENV
[
'GENERATE_COVERAGE'
]
=
'true'
puts
"
\033
[0;32mUsing
#{
`ruby --version`
}
\033
[0m"
...
...
@@ -315,7 +301,3 @@ def red(string)
"
\033
[0;31m
#{
string
}
\e
[0m"
end
def
required_binary?
(
name
)
`which
#{
name
}
`
$?
.
success?
end
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