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/10/05 11:22:28 UTC

[GitHub] dgrove-oss closed pull request #3: Scancode

dgrove-oss closed pull request #3: Scancode
URL: https://github.com/apache/incubator-openwhisk-composer/pull/3
 
 
   

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/.travis.yml b/.travis.yml
index cf0f091..5ec856f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -23,5 +23,7 @@ services:
 env:
   global:
     - IGNORE_CERTS=true
+before_install:
+  - ./travis/scancode.sh
 before_script:
   - ./travis/setup.sh
diff --git a/travis/scancode.sh b/travis/scancode.sh
new file mode 100755
index 0000000..900d465
--- /dev/null
+++ b/travis/scancode.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements; and to You under the Apache License, Version 2.0.
+
+set -e
+
+SCRIPTDIR=$(cd $(dirname "$0") && pwd)
+ROOTDIR="$SCRIPTDIR/../"
+HOMEDIR="$SCRIPTDIR/../../"
+UTIL_DIR="$HOMEDIR/incubator-openwhisk-utilities"
+
+# clone OpenWhisk utilities repo. in order to run scanCode.py
+cd $HOMEDIR
+git clone https://github.com/apache/incubator-openwhisk-utilities.git
+
+# run scancode
+cd $UTIL_DIR
+scancode/scanCode.py --config scancode/ASF-Release.cfg $ROOTDIR


 

----------------------------------------------------------------
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