You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ho...@apache.org on 2018/04/18 01:13:07 UTC
[incubator-openwhisk-runtime-nodejs] branch master updated: Add
scancode to Travis using the ASF Release configuration. (#39)
This is an automated email from the ASF dual-hosted git repository.
houshengbo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-runtime-nodejs.git
The following commit(s) were added to refs/heads/master by this push:
new 8ae05a4 Add scancode to Travis using the ASF Release configuration. (#39)
8ae05a4 is described below
commit 8ae05a4edc40483857710e43348ad82e65029030
Author: Matt Rutkowski <mr...@us.ibm.com>
AuthorDate: Tue Apr 17 20:13:04 2018 -0500
Add scancode to Travis using the ASF Release configuration. (#39)
* Add scancode to Travis using the ASF Release configuration.
* fix EOL problem.
---
core/nodejs8Action/build.gradle | 2 +-
tools/travis/build.sh | 5 +++++
tools/travis/setup.sh | 6 ++++--
3 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/core/nodejs8Action/build.gradle b/core/nodejs8Action/build.gradle
index f796acb..b4dd28a 100644
--- a/core/nodejs8Action/build.gradle
+++ b/core/nodejs8Action/build.gradle
@@ -33,4 +33,4 @@ task cleanup(type: Delete) {
delete 'app.js'
delete 'runner.js'
delete 'src'
-}
\ No newline at end of file
+}
diff --git a/tools/travis/build.sh b/tools/travis/build.sh
index 19ea582..f952128 100755
--- a/tools/travis/build.sh
+++ b/tools/travis/build.sh
@@ -23,11 +23,16 @@ set -ex
SCRIPTDIR=$(cd $(dirname "$0") && pwd)
ROOTDIR="$SCRIPTDIR/../.."
WHISKDIR="$ROOTDIR/../openwhisk"
+UTILDIR="$ROOTDIR/../incubator-openwhisk-utilities"
export OPENWHISK_HOME=$WHISKDIR
IMAGE_PREFIX="testing"
+# run scancode using the ASF Release configuration
+cd $UTILDIR
+scancode/scanCode.py --config scancode/ASF-Release.cfg $ROOTDIR
+
# Build OpenWhisk
cd $WHISKDIR
diff --git a/tools/travis/setup.sh b/tools/travis/setup.sh
index 1da8c03..c74fad6 100755
--- a/tools/travis/setup.sh
+++ b/tools/travis/setup.sh
@@ -24,9 +24,11 @@ SCRIPTDIR=$(cd $(dirname "$0") && pwd)
ROOTDIR="$SCRIPTDIR/../.."
HOMEDIR="$SCRIPTDIR/../../../"
-# OpenWhisk stuff
+# clone OpenWhisk repo. in order to run scanCode.py
cd $HOMEDIR
+git clone https://github.com/apache/incubator-openwhisk-utilities.git
+
+# OpenWhisk stuff
git clone --depth=1 https://github.com/apache/incubator-openwhisk.git openwhisk
cd openwhisk
./tools/travis/setup.sh
-
--
To stop receiving notification emails like this one, please contact
houshengbo@apache.org.