Skip to content

Commit 955f84e

Browse files
mrutkowspritidesai
authored andcommitted
Update Travis to use Scandcode with the ASF Release configuration. (#278)
* Update Travis to use Scandcode with the ASF Release configuration. * Update Travis to use Scandcode with the ASF Release configuration. * Update Travis to use Scandcode with the ASF Release configuration. * Update Travis to use Scandcode with the ASF Release configuration.
1 parent ed795ed commit 955f84e

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

tools/travis/test_openwhisk.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,17 @@ OPENWHISK_HOME="$( cd "${OPENWHISK_HOME:-$HOMEDIR/incubator-openwhisk}" && pwd )
5959
export OPENWHISK_HOME
6060

6161
#
62-
# Perform code validation using scanCode and Golint
62+
# Run scancode using the ASF Release configuration
6363
#
64-
../incubator-openwhisk-utilities/scancode/scanCode.py $TRAVIS_BUILD_DIR
64+
UTILDIR="$( cd "${UTILDIR:-$HOMEDIR/incubator-openwhisk-utilities}" && pwd )"
65+
export UTILDIR
66+
cd $UTILDIR
67+
scancode/scanCode.py --config scancode/ASF-Release.cfg $TRAVIS_BUILD_DIR
68+
69+
#
70+
# Run Golint
71+
#
72+
cd $TRAVIS_BUILD_DIR
6573
./gradlew --console=plain goLint
6674

6775
#

0 commit comments

Comments
 (0)