Skip to content

Commit

Permalink
Add --skip-tests support push to push command
Browse files Browse the repository at this point in the history
  • Loading branch information
dnkoutso committed Jul 28, 2017
1 parent d577cbc commit ccc4d06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Expand Up @@ -12,8 +12,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`

##### Bug Fixes

* None.

* Add `--skip-tests` support `push` to push command
[Dimitris Koutsogiorgas](https://github.com/dnkoutso)
[#6893](https://github.com/CocoaPods/CocoaPods/pull/6893)

## 1.3.0.rc.1 (2017-07-27)

Expand Down
3 changes: 3 additions & 0 deletions lib/cocoapods/command/repo/push.rb
Expand Up @@ -30,6 +30,7 @@ def self.options
['--local-only', 'Does not perform the step of pushing REPO to its remote'],
['--no-private', 'Lint includes checks that apply only to public repos'],
['--skip-import-validation', 'Lint skips validating that the pod can be imported'],
['--skip-tests', 'Lint skips building and running tests during validation'],
['--commit-message="Fix bug in pod"', 'Add custom commit message. ' \
'Opens default editor if no commit message is specified.'],
['--use-json', 'Push JSON spec to repo'],
Expand All @@ -52,6 +53,7 @@ def initialize(argv)
@use_json = argv.flag?('use-json')
@swift_version = argv.option('swift-version', nil)
@skip_import_validation = argv.flag?('skip-import-validation', false)
@skip_tests = argv.flag?('skip-tests', false)
super
end

Expand Down Expand Up @@ -130,6 +132,7 @@ def validate_podspec_files
validator.ignore_public_only_results = @private
validator.swift_version = @swift_version
validator.skip_import_validation = @skip_import_validation
validator.skip_tests = @skip_tests
begin
validator.validate
rescue => e
Expand Down

0 comments on commit ccc4d06

Please sign in to comment.