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
b4070443
Commit
b4070443
authored
Mar 29, 2014
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Push] Remove trunk test
parent
d50a9ed3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
21 deletions
+0
-21
push.rb
lib/cocoapods/command/push.rb
+0
-16
push_spec.rb
spec/functional/command/push_spec.rb
+0
-5
No files found.
lib/cocoapods/command/push.rb
View file @
b4070443
...
@@ -42,7 +42,6 @@ module Pod
...
@@ -42,7 +42,6 @@ module Pod
def
run
def
run
validate_podspec_files
validate_podspec_files
test_trunk
check_repo_status
check_repo_status
update_repo
update_repo
add_specs_to_repo
add_specs_to_repo
...
@@ -58,21 +57,6 @@ module Pod
...
@@ -58,21 +57,6 @@ module Pod
extend
Executable
extend
Executable
executable
:git
executable
:git
# @return [void] Silently test the CocoaPods trunk service.
#
def
test_trunk
return
unless
@repo
==
"master"
require
'rest'
base_url
=
'https://trunk.cocoapods.org/api/v1'
podspec_files
.
each
do
|
spec_file
|
spec
=
Pod
::
Specification
.
from_file
(
spec_file
)
REST
.
post
(
"
#{
base_url
}
/pods"
,
spec
.
to_json
,
'Content-Type'
=>
'application/json; charset=utf-8'
,
'Authorization'
=>
"Token 9300632274827cd3e6dde24bf9c608c3"
)
end
rescue
Exception
# Nothing
end
# Performs a full lint against the podspecs.
# Performs a full lint against the podspecs.
#
#
def
validate_podspec_files
def
validate_podspec_files
...
...
spec/functional/command/push_spec.rb
View file @
b4070443
...
@@ -5,11 +5,6 @@ module Pod
...
@@ -5,11 +5,6 @@ module Pod
extend
SpecHelper
::
Command
extend
SpecHelper
::
Command
extend
SpecHelper
::
TemporaryRepos
extend
SpecHelper
::
TemporaryRepos
# Don't test push the spec to the trunk app
def
command
(
*
a
)
super
.
tap
{
|
cmd
|
cmd
.
stubs
(
:test_trunk
)
}
end
before
do
before
do
config
.
repos_dir
=
SpecHelper
.
tmp_repos_path
config
.
repos_dir
=
SpecHelper
.
tmp_repos_path
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