forked from RxSwiftCommunity/RxFirebase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
235d263
commit 46d2084
Showing
4 changed files
with
62 additions
and
27 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 |
---|---|---|
@@ -1,21 +1,28 @@ | ||
#!/bin/bash | ||
for pod in $(find . -name "*.podspec" -type f -exec basename {} ';' );do | ||
push=0 | ||
if [[ $1 == 'push' ]]; then | ||
push=1 | ||
|
||
function pod_lint { | ||
pod=$1 | ||
command="$pod --allow-warnings" | ||
if [[ $2 == 0 ]]; then | ||
command="pod lib lint $command" | ||
else | ||
command="pod trunk push $command" | ||
fi | ||
echo $command | ||
$command ; result=$? | ||
} | ||
|
||
push=0 | ||
if [[ $1 == 'push' ]]; then | ||
push=1 | ||
fi | ||
for pod in $(find . -name "*.podspec" -type f -exec basename {} ';' );do | ||
if [[ $pod == 'RxFirebase.podspec' ]]; then | ||
continue | ||
fi | ||
command="$pod --allow-warnings" | ||
if [[ $push == 0 ]]; then | ||
command="pod lib lint $command" | ||
else | ||
command="pod trunk push $command" | ||
fi | ||
echo $command | ||
$command ; result=$? | ||
pod_lint $pod $push | ||
if [[ $result != 0 ]]; then | ||
exit $result | ||
fi | ||
done | ||
pod_lint 'RxFirebase.podspec' $push |
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
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
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