Skip to content

Commit

Permalink
Move Gemfile to top level so we can use CocoaPods linting and trunk p…
Browse files Browse the repository at this point in the history
…ushing. Modernize linting script.
  • Loading branch information
ZevEisenberg committed Dec 2, 2020
1 parent d23c5ab commit 7c5f3c9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ ocunit.xml
*.xcbkptlist
*.xcsettings

Examples/vendor/bundle/
vendor/bundle/
.bundle/
Pods/
File renamed without changes.
File renamed without changes.
20 changes: 17 additions & 3 deletions scripts/lint
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7c5f3c9

Please sign in to comment.