Skip to content

Commit

Permalink
[FLINK-13968][travis] Check correctness of binary licensing
Browse files Browse the repository at this point in the history
  • Loading branch information
zentol committed Sep 6, 2019
1 parent f43138e commit d49e174
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tools/travis_controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,26 @@ if [ $STAGE == "$STAGE_COMPILE" ]; then
echo "=============================================================================="
fi

if [ $EXIT_CODE == 0 ]; then
./tools/releasing/collect_license_files.sh ./build-target
diff "NOTICE-binary" "licenses-output/NOTICE-binary"
EXIT_CODE=$(($EXIT_CODE+$?))
diff -r "licenses-binary" "licenses-output/licenses-binary"
EXIT_CODE=$(($EXIT_CODE+$?))

if [ $EXIT_CODE != 0 ]; then
echo "=============================================================================="
echo "ERROR: binary licensing is out-of-date."
echo "Please update NOTICE-binary and licenses-binary using"
echo "'tools/releasing/collect_license_files.sh'."
echo "=============================================================================="
fi
else
echo "=============================================================================="
echo "Previous build failure detected, skipping licensing check."
echo "=============================================================================="
fi

if [ $EXIT_CODE == 0 ]; then
echo "Creating cache build directory $CACHE_FLINK_DIR"
mkdir -p "$CACHE_FLINK_DIR"
Expand Down

0 comments on commit d49e174

Please sign in to comment.