Skip to content

Commit

Permalink
Allowing warnings during pod trunk push and spec validation in push s…
Browse files Browse the repository at this point in the history
…cript, because of the dll.hpp warning
  • Loading branch information
abbeycode committed May 21, 2018
1 parent 74ad895 commit 4fea60b
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions Scripts/push-output.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,24 @@ else
echo -e "\nTag looks like a version number: $TRAVIS_TAG"
fi

# For linting purposes, fix the error in dll.hpp
sed -i .original 's/RARGetDllVersion();/RARGetDllVersion(void);/' Libraries/unrar/dll.hpp

# Skip tests because they're assumed to have passed during the cocoapod-validate script or else
# this script wouldn't run
# this script wouldn't run. Allow warnings, because prior validation doesn't (and it patches)
# around the one warning in the UnRAR library I can't silence
echo -e "\nLinting podspec..."
pod spec lint --fail-fast --skip-tests
pod spec lint --fail-fast --skip-tests --allow-warnings

if [ $? -ne 0 ]; then
echo -e "\nPodspec failed lint. Run again with --verbose to troubleshoot"
exit 1
fi

# Put back the original dll.hpp
mv Libraries/unrar/dll.hpp.original Libraries/unrar/dll.hpp

echo -e "\nExporting Carthage archive...\n"
# Exports ARCHIVE_PATH, used below
source ./Scripts/archive-carthage.sh

# Skip tests for reason stated above
# Skip tests and allow warnings for reasons stated above
echo -e "\nPushing to CocoaPods...\n"
pod trunk push --skip-tests
pod trunk push --skip-tests --allow-warnings

# If push is successful, add release to GitHub
if [ $? -ne 0 ]; then
Expand Down

0 comments on commit 4fea60b

Please sign in to comment.