-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Gemfile to top level so we can use CocoaPods linting and trunk p…
…ushing. Modernize linting script.
- Loading branch information
1 parent
d23c5ab
commit 7c5f3c9
Showing
4 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,6 @@ ocunit.xml | |
*.xcbkptlist | ||
*.xcsettings | ||
|
||
Examples/vendor/bundle/ | ||
vendor/bundle/ | ||
.bundle/ | ||
Pods/ |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |