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
9430c120
Commit
9430c120
authored
Dec 19, 2015
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update CLIntegracon
parent
5e13b2d1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
Gemfile.lock
Gemfile.lock
+2
-2
Rakefile
Rakefile
+8
-9
cocoapods-integration-specs
spec/cocoapods-integration-specs
+1
-1
integration.rb
spec/integration.rb
+4
-3
No files found.
Gemfile.lock
View file @
9430c120
...
...
@@ -126,7 +126,7 @@ GEM
parser (~> 2.2)
awesome_print (1.6.1)
bacon (1.2.0)
clintegracon (0.
6.1
)
clintegracon (0.
8.0
)
colored (~> 1.2)
diffy
cocoapods-dependencies (0.5.1)
...
...
@@ -135,7 +135,7 @@ GEM
colored (1.2)
crack (0.4.2)
safe_yaml (~> 1.0.0)
diffy (3.
0.7
)
diffy (3.
1.0
)
escape (0.0.4)
ffi (1.9.6)
fuzzy_match (2.0.4)
...
...
Rakefile
View file @
9430c120
...
...
@@ -201,26 +201,25 @@ begin
exit
1
end
title
'Running Integration tests'
sh
'rm -rf spec/cocoapods-integration-specs/
tmp'
rm_rf
'
tmp'
title
'Building all the fixtures'
sh
(
'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"
FileList
[
'tmp/*/transformed'
].
each
do
|
source
|
name
=
source
.
match
(
%r{^tmp/(.+)/transformed$}
)[
1
]
destination
=
"spec/cocoapods-integration-specs/
#{
name
}
/after"
if
File
.
exist?
(
destination
)
sh
"rm -rf
#{
destination
}
"
sh
"mv
#{
source
}
#{
destination
}
"
rm_rf
destination
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}'
,
'.DS_Store'
]
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
}
"
end
files_to_delete
.
exclude
(
'spec/cocoapods-integration-specs/init_single_platform/**/*.*'
)
rm_rf
files_to_delete
puts
puts
'Integration fixtures updated, commit and push in the `spec/cocoapods-integration-specs` submodule'
...
...
cocoapods-integration-specs
@
b4641615
Subproject commit
1992448c8291e0c0ee871e4273c81c6272f18c0d
Subproject commit
b464161555947e7992606e0b186c1e8078d36f7f
spec/integration.rb
View file @
9430c120
...
...
@@ -66,6 +66,7 @@ CLIntegracon.configure do |c|
# Creates a YAML representation of the Xcodeproj files
# which should be used as a reference for comparison.
xcodeproj
=
Xcodeproj
::
Project
.
open
(
path
)
FileUtils
.
rm_rf
(
path
)
File
.
open
(
"
#{
path
}
.yaml"
,
'w'
)
do
|
file
|
file
.
write
xcodeproj
.
to_yaml
end
...
...
@@ -78,8 +79,8 @@ CLIntegracon.configure do |c|
end
# Register special handling for YAML files
paths
=
[
/Podfile\.lock/
,
/Manifest\.lock$/
,
/xcodeproj\.yaml$/
]
c
.
has_special_handling_for
(
*
paths
)
do
|
path
|
paths
=
[
/Podfile\.lock/
,
/Manifest\.lock$/
]
c
.
preprocess
(
*
paths
)
do
|
path
|
# Remove CocoaPods version
yaml
=
File
.
open
(
path
)
{
|
f
|
YAML
.
load
(
f
)
}
yaml
.
delete
(
'COCOAPODS'
)
...
...
@@ -87,7 +88,6 @@ CLIntegracon.configure do |c|
end
# So we don't need to compare them directly
c
.
ignores
/\.xcodeproj\//
c
.
ignores
'Podfile'
# Ignore certain OSX files
...
...
@@ -120,6 +120,7 @@ describe_cli 'pod' do
'--verbose'
,
'--no-ansi'
,
]
s
.
replace_path
%r{
#{
CLIntegracon
.
shared_config
.
temp_path
}
/
\w
+/transformed}
,
'PROJECT'
s
.
replace_path
ROOT
.
to_s
,
'ROOT'
s
.
replace_path
`which git`
.
chomp
,
'GIT_BIN'
s
.
replace_path
`which hg`
.
chomp
,
'HG_BIN'
if
has_mercurial
...
...
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