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

[incubator-openwhisk-release] branch master updated: Add the support to generate the report regarding apache license headers (#46)

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

daisyguo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-release.git


The following commit(s) were added to refs/heads/master by this push:
     new 1bf75b1  Add the support to generate the report regarding apache license headers (#46)
1bf75b1 is described below

commit 1bf75b178dfe1b8e6b6af34ff79d1aeda5eec045
Author: Vincent <sh...@us.ibm.com>
AuthorDate: Mon Feb 26 01:18:17 2018 -0500

    Add the support to generate the report regarding apache license headers (#46)
---
 tools/lib/apache-rat-0.13-SNAPSHOT.jar | Bin 0 -> 1625330 bytes
 tools/travis/package_source_code.sh    |   2 ++
 tools/verify_source_code.sh            |  14 +++++++++++---
 3 files changed, 13 insertions(+), 3 deletions(-)

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

-- 
To stop receiving notification emails like this one, please contact
daisyguo@apache.org.