Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHOENIX-6745 Fix run-source-ratcheck.sh script #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions python-phoenixdb/dev-support/rat-excludes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
NEWS\.rst
RELEASING\.rst
README\.rst
dev-support.*
\.gitignore
14 changes: 6 additions & 8 deletions python-phoenixdb/dev-support/run-source-ratcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ fi
echo "RAT binary installation localized, running RAT check"

# Run the RAT check, excluding pyc files
for src in 'phoenixdb' 'ci' 'examples' 'doc'; do
echo "Running RAT check over $src"
java -jar "$ARTIFACTS_DIR/$RAT_BINARY_DIR/$RAT_JAR" -d "$DEV_SUPPORT/../$src" -E "$DEV_SUPPORT/rat-excludes.txt"
if [[ $? -ne 0 ]]; then
echo "Failed RAT check over $src"
exit 1
fi
done
echo "Running RAT check"
java -jar "$ARTIFACTS_DIR/$RAT_BINARY_DIR/$RAT_JAR" -d "$DEV_SUPPORT/../" -E "$DEV_SUPPORT/rat-excludes.txt"
if [[ $? -ne 0 ]]; then
echo "Failed RAT check"
exit 1
fi