Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[Rakefile] Use the folder of the working directory as the repos dir

  • Loading branch information...
commit f139c9892661daeca64bff56a49cc29a7ad1fa84 1 parent 82cf121
@fabiopelosin fabiopelosin authored
Showing with 17 additions and 9 deletions.
  1. +2 −2 Gemfile.lock
  2. +15 −7 Rakefile
View
4 Gemfile.lock
@@ -1,6 +1,6 @@
GIT
remote: git://github.com/CocoaPods/CocoaPods.git
- revision: a16ba2deb1ead40600ba75258ee3ed4d64467732
+ revision: 03ab861792c3a4a8c5a141acb4260b49ae133bc0
specs:
cocoapods (0.17.0.rc5)
activesupport (~> 3.2.6)
@@ -18,7 +18,7 @@ GIT
GIT
remote: git://github.com/CocoaPods/Core.git
- revision: 8314fa4257027c8b2a39470568d8ec6b171f49cd
+ revision: d14ee9c8c7599589844a592145be02bc4a361de2
specs:
cocoapods-core (0.17.0.rc5)
activesupport (~> 3.2.6)
View
22 Rakefile
@@ -2,6 +2,12 @@ require 'pathname'
require 'cocoapods-core'
require 'cocoapods'
+# Configuration
+#-----------------------------------------------------------------------------#
+
+Pod::Config.instance.repos_dir = Pathname.pwd.dirname
+# Pod::Config.instance.verbose = true
+
#-----------------------------------------------------------------------------#
# TODO pass old spec
@@ -10,20 +16,20 @@ desc "Run `pod spec lint` on all specs"
task :lint do
exit if ENV['skip-lint']
- title('Last Commit Specs')
- puts "The Master repo doesn't accepts specifications with warnings."
- puts "The specifications from the last commit are linted with the"
- puts "most strict settings. Please take action if you fail the tests."
+ title('Most Recently Commited Specs ')
+ puts "The Master repo will not accept specifications with warnings."
+ puts "The specifications from the most recent commit are linted with the most strict settings."
+ puts "For more info see: http://docs.cocoapods.org/guides/contributing_to_the_master_repo.html"
has_commit_failures = false
last_commit_specs.each do |spec_path|
puts "\n#{spec_path}"
spec = Pod::Spec.from_file(spec_path)
acceptable = check_if_can_be_accepted(spec, spec_path)
- if ENV['TRAVIS_PULL_REQUEST'] == 'false'
- lints = quick_lint(spec)
- else
+ if ENV['TRAVIS_PULL_REQUEST'] && ENV['TRAVIS_PULL_REQUEST'] != 'false'
lints = lint(spec)
+ else
+ lints = quick_lint(spec)
end
if acceptable && lints
@@ -184,3 +190,5 @@ module Pod
def CoreUI.warn(message)
end
end
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.