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
f689cda8
Commit
f689cda8
authored
Oct 26, 2012
by
Eloy Durán
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure all integration specs are run and fix specs on Travis & RBX
parent
17b8ab56
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
8 deletions
+15
-8
integration_spec.rb
spec/integration_spec.rb
+3
-5
spec_helper.rb
spec/spec_helper.rb
+5
-2
command.rb
spec/spec_helper/command.rb
+4
-0
linter_spec.rb
spec/unit/command/linter_spec.rb
+3
-1
No files found.
spec/integration_spec.rb
View file @
f689cda8
...
...
@@ -43,18 +43,16 @@ else
$?
.
should
.
be
.
success
end
puts
" ! "
.
red
<<
"Skipping xcodebuild based checks, because it can't be found."
if
`which xcodebuild`
.
strip
.
empty
?
puts
" ! "
.
red
<<
"Skipping xcodebuild based checks, because it can't be found."
if
skip_xcodebuild
?
def
should_xcodebuild
(
target_definition
)
return
if
`which xcodebuilda`
.
strip
.
empty
?
return
if
skip_xcodebuild
?
target
=
target_definition
with_xcodebuild_available
do
Dir
.
chdir
(
config
.
project_pods_root
)
do
print
"[!] Compiling
#{
target
.
label
}
...
\r
"
should_successfully_perform
"xcodebuild -target '
#{
target
.
label
}
'"
lib_path
=
config
.
project_pods_root
+
"build/Release
#{
'-iphoneos'
if
target
.
platform
==
:ios
}
"
+
target
.
lib_name
`lipo -info '
#{
lib_path
}
'`
.
should
.
include
"architecture:
#{
target
.
platform
==
:ios
?
'armv7'
:
'x86_64'
}
"
end
`lipo -info '
#{
lib_path
}
'`
.
should
.
include
"
#{
target
.
platform
==
:ios
?
'armv7'
:
'x86_64'
}
"
end
end
...
...
spec/spec_helper.rb
View file @
f689cda8
...
...
@@ -22,6 +22,9 @@ require 'spec_helper/user_interface'
require
'spec_helper/pre_flight'
ENV
[
'SKIP_SETUP'
]
=
'true'
if
ENV
[
'SKIP_XCODEBUILD'
].
nil?
&&
`which xcodebuild`
.
strip
.
empty?
ENV
[
'SKIP_XCODEBUILD'
]
=
'true'
end
require
'claide'
...
...
@@ -31,8 +34,8 @@ module Bacon
include
SpecHelper
::
Fixture
include
SpecHelper
::
Command
def
argv
(
*
argv
)
CLAide
::
ARGV
.
new
(
argv
)
def
skip_xcodebuild?
ENV
[
'SKIP_XCODEBUILD'
]
end
end
end
...
...
spec/spec_helper/command.rb
View file @
f689cda8
...
...
@@ -2,6 +2,10 @@ require 'spec_helper/temporary_directory'
module
SpecHelper
module
Command
def
argv
(
*
argv
)
CLAide
::
ARGV
.
new
(
argv
)
end
def
command
(
*
argv
)
argv
<<
'--no-color'
Pod
::
Command
.
parse
(
argv
)
...
...
spec/unit/command/linter_spec.rb
View file @
f689cda8
...
...
@@ -94,12 +94,14 @@ describe "Pod::Command::Linter" do
linter
.
errors
.
join
(
' | '
).
should
=~
/`config.ios\?' and `config.osx\?' are deprecated/
end
unless
skip_xcodebuild?
it
"uses xcodebuild to generate notes and warnings"
do
file
=
write_podspec
(
stub_podspec
)
linter
=
Pod
::
Command
::
Spec
::
Linter
.
new
(
file
)
linter
.
lint
linter
.
result_type
.
should
==
:warning
linter
.
notes
.
join
(
' | '
).
should
.
include
"JSONKit/JSONKit.m:1640:27: warning: equality comparison with extraneous parentheses"
unless
`which xcodebuild`
.
strip
.
empty?
linter
.
notes
.
join
(
' | '
).
should
.
include
"JSONKit/JSONKit.m:1640:27: warning: equality comparison with extraneous parentheses"
end
end
it
"checks for file patterns"
do
...
...
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