diff --git a/.gitignore b/.gitignore index b13927f1..f17dee1c 100644 --- a/.gitignore +++ b/.gitignore @@ -43,6 +43,6 @@ ocunit.xml *.xcbkptlist *.xcsettings -Examples/vendor/bundle/ +vendor/bundle/ .bundle/ Pods/ diff --git a/Examples/Gemfile b/Gemfile similarity index 100% rename from Examples/Gemfile rename to Gemfile diff --git a/Examples/Gemfile.lock b/Gemfile.lock similarity index 100% rename from Examples/Gemfile.lock rename to Gemfile.lock diff --git a/scripts/lint b/scripts/lint index c1bcd1ce..c942842d 100755 --- a/scripts/lint +++ b/scripts/lint @@ -1,12 +1,26 @@ #!/usr/bin/env sh +set -eu +set -o pipefail + +printf 'linting CocoaPods\n' + +if ! command -v bundle > /dev/null; then + printf 'bundler is not installed.\n' + printf 'install with $ gem install bundler\n' + exit 1 +fi + +bundle config set path 'vendor/bundle' +bundle install +bundle exec pod lib lint + +printf 'linting Carthage\n' + if ! command -v carthage > /dev/null; then printf 'Carthage is not installed.\n' printf 'See https://github.com/Carthage/Carthage for install instructions.\n' exit 1 fi - carthage build --platform iOS --no-use-binaries --no-skip-current - -pod lib lint