You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/02/26 06:18:18 UTC

[GitHub] daisy-ycguo closed pull request #46: Add the support to generate the report regarding apache license headers

daisy-ycguo closed pull request #46: Add the support to generate the report regarding apache license headers
URL: https://github.com/apache/incubator-openwhisk-release/pull/46
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/tools/lib/apache-rat-0.13-SNAPSHOT.jar b/tools/lib/apache-rat-0.13-SNAPSHOT.jar
new file mode 100644
index 0000000..bcdd432
Binary files /dev/null and b/tools/lib/apache-rat-0.13-SNAPSHOT.jar differ
diff --git a/tools/travis/package_source_code.sh b/tools/travis/package_source_code.sh
index 695e28f..ffcdc49 100755
--- a/tools/travis/package_source_code.sh
+++ b/tools/travis/package_source_code.sh
@@ -25,3 +25,5 @@ if [ "$TRAVIS_EVENT_TYPE" == "push" ] ; then
     "$PARENTDIR/sign_artifacts.sh" $WORK_DIR
     "$PARENTDIR/upload_artifacts.sh" $WORK_DIR $SVN_USERNAME $SVN_PASSWORD
 fi
+
+"$PARENTDIR/verify_source_code.sh" $WORK_DIR
diff --git a/tools/verify_source_code.sh b/tools/verify_source_code.sh
index 7ad4a9d..2c157ae 100755
--- a/tools/verify_source_code.sh
+++ b/tools/verify_source_code.sh
@@ -2,10 +2,18 @@
 
 set -e
 
+echo "Generate the report regarding the source code headers."
+
 WORK_DIR=${1:-"$HOME"}
-OPENWHISK_SOURCE_DIR="$WORK_DIR/openwhisk_sources"
 
 SCRIPTDIR="$(cd $(dirname "$0")/ && pwd)"
+source "$SCRIPTDIR/load_config.sh" $1
+PARENTDIR="$(dirname "$SCRIPTDIR")"
+
+REPORT_DIR=$PARENTDIR/report
+REPORT_FILE=$REPORT_DIR/apache-rat-report.txt
+
+mkdir -p $REPORT_DIR
+touch $REPORT_FILE
 
-# TODO: verify the source code headers
-echo "TODO: verify the source code headers"
+java -jar $SCRIPTDIR/lib/apache-rat-0.13-SNAPSHOT.jar -a $OPENWHISK_CLEANED_SOURCE_DIR > $REPORT_FILE


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services