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

Add check to ensure that files in tensorflow/lite/micro have proper license and formatting #45674

Merged
merged 18 commits into from
Dec 15, 2020
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 30 additions & 0 deletions tensorflow/lite/micro/tools/ci_build/test_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,36 @@ if [ -d tensorflow/lite/micro/tools/make/downloads ]; then
exit 1
fi

# explicitly call third_party_downloads since we need pigweed for the license
# and clang-format checks.
make -f tensorflow/lite/micro/tools/make/Makefile third_party_downloads

# Check for license with the necessary exclusions.
tensorflow/lite/micro/tools/make/downloads/pigweed/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py \
tensorflow/lite/micro \
-p copyright_notice \
-e micro/tools/make/targets/ecm3531 \
-e BUILD\
-e leon_commands \
-e Makefile \
-e "\.bzl" \
-e "\.cmd" \
-e "\.cmd" \
-e "\.conf" \
-e "\.defaults" \
-e "\.h5" \
-e "\.ipynb" \
-e "\.inc" \
-e "\.lcf" \
-e "\.ld" \
-e "\.lds" \
-e "\.projbuild" \
-e "\.properties" \
-e "\.resc" \
-e "\.robot" \
-e "\.txt" \
-e "\.tpl" \
--output-directory /tmp

# We are moving away from having the downloads and installations be part of the
# Makefile. As a result, we need to manually add the downloads in this script.
Expand Down