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
55a5069a
Commit
55a5069a
authored
Apr 16, 2015
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Command] Expose Validator#fail_fast as option --fail-fast
parent
8048d060
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
lib.rb
lib/cocoapods/command/lib.rb
+3
-0
lint.rb
lib/cocoapods/command/spec/lint.rb
+3
-0
No files found.
lib/cocoapods/command/lib.rb
View file @
55a5069a
...
...
@@ -113,6 +113,7 @@ module Pod
[
'--subspec=NAME'
,
'Lint validates only the given subspec'
],
[
'--no-subspecs'
,
'Lint skips validation of subspecs'
],
[
'--no-clean'
,
'Lint leaves the build directory intact for inspection'
],
[
'--fail-fast'
,
'Lint stops on the first failing platform or subspec'
],
[
'--use-libraries'
,
'Lint uses static libraries to install the spec'
],
[
'--sources=https://github.com/artsy/Specs,master'
,
'The sources from which to pull dependant pods '
\
'(defaults to https://github.com/CocoaPods/Specs.git). '
\
...
...
@@ -123,6 +124,7 @@ module Pod
@quick
=
argv
.
flag?
(
'quick'
)
@allow_warnings
=
argv
.
flag?
(
'allow-warnings'
)
@clean
=
argv
.
flag?
(
'clean'
,
true
)
@fail_fast
=
argv
.
flag?
(
'fail-fast'
,
false
)
@subspecs
=
argv
.
flag?
(
'subspecs'
,
true
)
@only_subspec
=
argv
.
option
(
'subspec'
)
@use_frameworks
=
!
argv
.
flag?
(
'use-libraries'
)
...
...
@@ -142,6 +144,7 @@ module Pod
validator
.
local
=
true
validator
.
quick
=
@quick
validator
.
no_clean
=
!
@clean
validator
.
fail_fast
=
@fail_fast
validator
.
allow_warnings
=
@allow_warnings
validator
.
no_subspecs
=
!
@subspecs
||
@only_subspec
validator
.
only_subspec
=
@only_subspec
...
...
lib/cocoapods/command/spec/lint.rb
View file @
55a5069a
...
...
@@ -20,6 +20,7 @@ module Pod
[
'--subspec=NAME'
,
'Lint validates only the given subspec'
],
[
'--no-subspecs'
,
'Lint skips validation of subspecs'
],
[
'--no-clean'
,
'Lint leaves the build directory intact for inspection'
],
[
'--fail-fast'
,
'Lint stops on the first failing platform or subspec'
],
[
'--use-libraries'
,
'Lint uses static libraries to install the spec'
],
[
'--sources=https://github.com/artsy/Specs,master'
,
'The sources from which to pull dependant pods '
\
'(defaults to https://github.com/CocoaPods/Specs.git). '
\
...
...
@@ -30,6 +31,7 @@ module Pod
@quick
=
argv
.
flag?
(
'quick'
)
@allow_warnings
=
argv
.
flag?
(
'allow-warnings'
)
@clean
=
argv
.
flag?
(
'clean'
,
true
)
@fail_fast
=
argv
.
flag?
(
'fail-fast'
,
false
)
@subspecs
=
argv
.
flag?
(
'subspecs'
,
true
)
@only_subspec
=
argv
.
option
(
'subspec'
)
@use_frameworks
=
!
argv
.
flag?
(
'use-libraries'
)
...
...
@@ -45,6 +47,7 @@ module Pod
validator
=
Validator
.
new
(
podspec
,
@source_urls
)
validator
.
quick
=
@quick
validator
.
no_clean
=
!
@clean
validator
.
fail_fast
=
@fail_fast
validator
.
allow_warnings
=
@allow_warnings
validator
.
no_subspecs
=
!
@subspecs
||
@only_subspec
validator
.
only_subspec
=
@only_subspec
...
...
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