Add lint mode to build.sh (#2728)

This commit is contained in:
Garrett Moon
2016-12-07 14:38:12 -08:00
committed by Hannah Troisi
parent 7de2decdcb
commit 80ab695cd0

View File

@@ -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'."