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
381c9161
Commit
381c9161
authored
Nov 05, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve reporting from xcodebuild in integration spec.
parent
55e11e5f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
integration_spec.rb
spec/integration_spec.rb
+10
-6
No files found.
spec/integration_spec.rb
View file @
381c9161
...
@@ -46,6 +46,12 @@ else
...
@@ -46,6 +46,12 @@ else
Pod
::
Config
.
instance
=
@config_before
Pod
::
Config
.
instance
=
@config_before
end
end
def
should_successfully_perform
(
command
)
output
=
`
#{
command
}
2>&1`
puts
output
unless
$?
.
success?
$?
.
should
.
be
.
success
end
# TODO add a simple source file which uses the compiled lib to check that it really really works
# TODO add a simple source file which uses the compiled lib to check that it really really works
it
"should activate required pods and create a working static library xcode project"
do
it
"should activate required pods and create a working static library xcode project"
do
spec
=
Pod
::
Podfile
.
new
do
spec
=
Pod
::
Podfile
.
new
do
...
@@ -75,8 +81,7 @@ else
...
@@ -75,8 +81,7 @@ else
puts
"
\n
[!] Compiling static library..."
puts
"
\n
[!] Compiling static library..."
Dir
.
chdir
(
config
.
project_pods_root
)
do
Dir
.
chdir
(
config
.
project_pods_root
)
do
system
(
"xcodebuild > /dev/null 2>&1"
).
should
==
true
should_successfully_perform
"xcodebuild"
#system("xcodebuild").should == true
end
end
end
end
...
@@ -174,12 +179,11 @@ else
...
@@ -174,12 +179,11 @@ else
Dir
.
chdir
(
config
.
project_pods_root
)
do
Dir
.
chdir
(
config
.
project_pods_root
)
do
puts
"
\n
[!] Compiling static library `Pods'..."
puts
"
\n
[!] Compiling static library `Pods'..."
#system("xcodebuild -target Pods").should == true
should_successfully_perform
"xcodebuild -target Pods"
system
(
"xcodebuild -target Pods > /dev/null 2>&1"
).
should
==
true
puts
"
\n
[!] Compiling static library `Pods-debug'..."
puts
"
\n
[!] Compiling static library `Pods-debug'..."
s
ystem
(
"xcodebuild -target Pods-debug > /dev/null 2>&1"
).
should
==
true
s
hould_successfully_perform
"xcodebuild -target Pods-debug"
puts
"
\n
[!] Compiling static library `Pods-test'..."
puts
"
\n
[!] Compiling static library `Pods-test'..."
s
ystem
(
"xcodebuild -target Pods-test > /dev/null 2>&1"
).
should
==
true
s
hould_successfully_perform
"xcodebuild -target Pods-test"
end
end
end
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