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
448f40b2
Commit
448f40b2
authored
Sep 09, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Integration] Move runner to integration repos
parent
0f9ebc5d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
37 deletions
+10
-37
Rakefile
Rakefile
+9
-36
cocoapods-integration-specs
spec/cocoapods-integration-specs
+1
-1
No files found.
Rakefile
View file @
448f40b2
...
...
@@ -188,15 +188,14 @@ namespace :spec do
exit
1
end
sh
"bundle exec bacon spec/integration.rb"
binary_path
=
"
#{
Dir
.
pwd
}
/bin/pod"
Dir
.
chdir
(
'spec/cocoapods-integration-specs'
)
do
sh
"CP_TEST_POD_BINARY=
#{
binary_path
}
rake run"
end
end
# Default task
#--------------------------------------#
#
# The specs helper interfere with the integration 2 specs and thus they need
# to be run separately.
#
task
:all
=>
:unpack_fixture_tarballs
do
ENV
[
'GENERATE_COVERAGE'
]
=
'true'
...
...
@@ -204,7 +203,7 @@ namespace :spec do
sh
"bundle exec bacon
#{
specs
(
'**'
)
}
"
title
'Running Integration tests'
sh
"bundle exec bacon spec/integration.rb"
Rake
::
Task
[
'spec:integration'
].
invoke
title
'Running examples'
Rake
::
Task
[
'examples:build'
].
invoke
...
...
@@ -212,9 +211,6 @@ namespace :spec do
# Travis
#--------------------------------------#
#
# The integration 2 tests and the examples use the normal CocoaPods setup.
#
desc
"Run all specs and build all examples"
task
:ci
=>
:unpack_fixture_tarballs
do
title
'Running the specs'
...
...
@@ -227,7 +223,7 @@ namespace :spec do
end
title
'Running Integration tests'
sh
"bundle exec bacon spec/integration.rb"
Rake
::
Task
[
'spec:integration'
].
invoke
title
'Running examples'
Rake
::
Task
[
'examples:build'
].
invoke
...
...
@@ -268,29 +264,10 @@ namespace :spec do
desc
"Rebuilds integration fixtures"
task
:rebuild_integration_fixtures
do
title
'Running Integration tests'
`bundle exec bacon spec/integration.rb`
title
'Storing fixtures'
# Copy the files to the files produced by the specs to the after folders
FileList
[
'tmp/*'
].
each
do
|
source
|
destination
=
"spec/cocoapods-integration-specs/
#{
source
.
gsub
(
'tmp/'
,
''
)
}
/after"
if
File
.
exists?
(
destination
)
sh
"rm -rf
#{
destination
}
"
sh
"mv
#{
source
}
#{
destination
}
"
end
end
# Remove files not used for the comparison
# To keep the git diff clean
files_to_delete
=
FileList
[
'spec/cocoapods-integration-specs/*/after/{Podfile,*.podspec,**/*.xcodeproj,PodTest-hg-source}'
]
files_to_delete
.
exclude
(
'/spec/cocoapods-integration-specs/init_single_platform/**/*.*'
)
files_to_delete
.
each
do
|
file_to_delete
|
sh
"rm -rf
#{
file_to_delete
}
"
binary_path
=
"
#{
Dir
.
pwd
}
/bin/pod"
Dir
.
chdir
(
'spec/cocoapods-integration-specs'
)
do
sh
"CP_TEST_POD_BINARY=
#{
binary_path
}
rake rebuild_after_folders"
end
puts
puts
"Integration fixtures updated, commit and push in the `spec/cocoapods-integration-specs` submodule"
end
#--------------------------------------#
...
...
@@ -335,10 +312,6 @@ namespace :examples do
desc
"Build all examples"
task
:build
do
# TODO: sometimes it uses the installed gem
# Rake::Task['gem:install'].invoke
examples
.
entries
.
each
do
|
example
|
puts
"Building example:
#{
example
}
"
Dir
.
chdir
(
example
.
to_s
)
do
...
...
cocoapods-integration-specs
@
d09c5672
Subproject commit
9380cad5615ba0ba6c3544ef9aedf1524554dc55
Subproject commit
d09c56727dc01df75c4e2c83f8b574f3e31b7342
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