Skip to content

Commit

Permalink
Add lint mode to build.sh (#2728)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmoon authored and Hannah Troisi committed Dec 7, 2016
1 parent 7de2dec commit 80ab695
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -292,4 +292,12 @@ if [ "$MODE" = "framework" ]; then
exit 0
fi

if [ "$MODE" = "cocoapods-lint" ]; then
echo "Verifying that podspec lints."

set -o pipefail && pod lib lint
trap - EXIT
exit 0
fi

echo "Unrecognised mode '$MODE'."

0 comments on commit 80ab695

Please sign in to comment.