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
39104c45
Commit
39104c45
authored
May 31, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Specs] Remove old uneeded integration spec
This test was using Rake::FileList
parent
665417d0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
92 deletions
+0
-92
Rakefile
Rakefile
+0
-1
integration_spec.rb
spec/integration_spec.rb
+0
-91
No files found.
Rakefile
View file @
39104c45
...
@@ -181,7 +181,6 @@ namespace :spec do
...
@@ -181,7 +181,6 @@ namespace :spec do
desc
"Run the integration spec"
desc
"Run the integration spec"
task
:integration
=>
:unpack_fixture_tarballs
do
task
:integration
=>
:unpack_fixture_tarballs
do
sh
"bundle exec bacon spec/integration_spec.rb"
sh
"bundle exec bacon spec/integration_2.rb"
sh
"bundle exec bacon spec/integration_2.rb"
end
end
...
...
spec/integration_spec.rb
deleted
100644 → 0
View file @
665417d0
require
File
.
expand_path
(
'../spec_helper'
,
__FILE__
)
require
'yaml'
#-----------------------------------------------------------------------------#
# TODO These checks need to be migrated to spec/integration_2.rb
#-----------------------------------------------------------------------------#
# @!group Helpers
def
skip_xcodebuild?
ENV
[
'SKIP_XCODEBUILD'
]
end
puts
" [!] "
.
red
<<
"Skipping xcodebuild based checks, because it can't be found."
if
skip_xcodebuild?
def
should_xcodebuild
(
target_definition
)
return
if
skip_xcodebuild?
target
=
target_definition
Dir
.
chdir
(
config
.
sandbox_root
)
do
print
"[!] Compiling
#{
target
.
label
}
...
\r
"
should_successfully_perform
"xcodebuild -target '
#{
target
.
label
}
'"
product_name
=
"lib
#{
target_definition
.
label
}
.a"
lib_path
=
config
.
sandbox_root
+
"build/Release
#{
'-iphoneos'
if
target
.
platform
==
:ios
}
"
+
product_name
`lipo -info '
#{
lib_path
}
'`
.
should
.
include
"
#{
target
.
platform
==
:ios
?
'armv7'
:
'x86_64'
}
"
end
end
def
should_successfully_perform
(
command
)
output
=
`
#{
command
}
2>&1`
puts
output
unless
$?
.
success?
$?
.
should
.
be
.
success
end
#-----------------------------------------------------------------------------#
module
Pod
describe
"Full integration"
do
before
do
config
.
integrate_targets
=
false
end
# xit "includes automatically inherited subspecs" do; end
#--------------------------------------#
# @note ASIHTTPRequest depends on Reachability in iOS.
#
it
"creates targets for different platforms"
do
podfile
=
Podfile
.
new
do
platform
:ios
xcodeproj
'dummy'
pod
'JSONKit'
,
'1.4'
target
:ios_target
do
pod
'ASIHTTPRequest'
,
'1.8.1'
end
target
:osx_target
do
platform
:osx
pod
'ASIHTTPRequest'
,
'1.8.1'
end
end
installer
=
Installer
.
new
(
config
.
sandbox
,
podfile
)
installer
.
install!
lockfile
=
installer
.
lockfile
.
to_hash
lockfile
[
'PODS'
].
should
==
[
{
"ASIHTTPRequest (1.8.1)"
=>
[
"ASIHTTPRequest/ASIWebPageRequest"
,
"ASIHTTPRequest/CloudFiles"
,
"ASIHTTPRequest/S3"
,
"Reachability"
]
},
{
"ASIHTTPRequest/ASIWebPageRequest (1.8.1)"
=>
[
"Reachability"
]
},
{
"ASIHTTPRequest/CloudFiles (1.8.1)"
=>
[
"Reachability"
]
},
{
"ASIHTTPRequest/S3 (1.8.1)"
=>
[
"Reachability"
]
},
"JSONKit (1.4)"
,
"Reachability (3.1.0)"
]
lockfile
[
'DEPENDENCIES'
].
should
==
[
"ASIHTTPRequest (= 1.8.1)"
,
"JSONKit (= 1.4)"
]
should_xcodebuild
(
podfile
.
target_definitions
[
:ios_target
])
should_xcodebuild
(
podfile
.
target_definitions
[
:osx_target
])
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