This is an automated email from the ASF dual-hosted git repository.

chesnay pushed a commit to branch release-1.8
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.8 by this push:
     new 68885b8  [FLINK-13968][travis] Check correctness of binary licensing
68885b8 is described below

commit 68885b888afce0b45664cb8c4cf2d4d52a1bfb3d
Author: Chesnay Schepler <ches...@apache.org>
AuthorDate: Wed Sep 4 15:37:20 2019 +0200

    [FLINK-13968][travis] Check correctness of binary licensing
---
 tools/travis_controller.sh | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/tools/travis_controller.sh b/tools/travis_controller.sh
index c0f70a5..f27e408 100755
--- a/tools/travis_controller.sh
+++ b/tools/travis_controller.sh
@@ -96,6 +96,26 @@ if [ $STAGE == "$STAGE_COMPILE" ]; then
     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"
     

Reply via email to