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-utilities.git
The following commit(s) were added to refs/heads/master by this push: new 456180a Add travis for scancode in the scancode subdirectory. (#15) 456180a is described below commit 456180ab63fd0ce78fcef902d4400967b5f17ffd Author: Matt Rutkowski <mrutk...@us.ibm.com> AuthorDate: Wed Jun 21 10:13:24 2017 -0500 Add travis for scancode in the scancode subdirectory. (#15) * Add travis for all utilities in in subdirs. * Add travis for all utilities in in subdirs. * Add travis for all utilities in in subdirs. * Add travis for all utilities in in subdirs. * Add travis for all utilities in in subdirs. * Add travis for all utilities in in subdirs. * Add travis for all utilities in in subdirs. * Add travis for all utilities in in subdirs. * Add travis for all utilities in in subdirs. * Add travis for all utilities in in subdirs. * Add travis for all utilities in in subdirs. --- scancode/.travis.yml => .travis.yml | 4 +++- README.md | 6 +++++- scancode/test.sh | 5 +++++ scancode/travis.cfg | 5 ++++- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/scancode/.travis.yml b/.travis.yml similarity index 79% rename from scancode/.travis.yml rename to .travis.yml index cec684f..cf08943 100644 --- a/scancode/.travis.yml +++ b/.travis.yml @@ -6,4 +6,6 @@ python: # command to install dependencies # install: "pip install -r requirements.txt" # command to run tests -script: ./test.sh + +# Invoke ScanCode tests +script: ./scancode/test.sh diff --git a/README.md b/README.md index 1449416..2039b7e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ + +[![Build Status](https://travis-ci.org/apache/incubator-openwhisk-utilities.svg?branch=master)](https://travis-ci.org/apache/incubator-openwhisk-utilities) +[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0) + # OpenWhisk Utilities Shared utilities used across Apache OpenWhisk project repositories. @@ -12,5 +16,5 @@ The following utilities are included in this repository (by subdirectory): Report bugs, ask questions and request features [here on GitHub](../../issues). -You can also join our slack channel and chat with developers. To get access to our slack channel, +You can also join our slack channel and chat with developers. To get access to our slack channel, request an invite [here](http://slack.openwhisk.org). diff --git a/scancode/test.sh b/scancode/test.sh index 6f755d8..6e87363 100755 --- a/scancode/test.sh +++ b/scancode/test.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash +# set -x #echo on + +SCRIPTDIR=$(cd $(dirname "$0") && pwd) + +cd $SCRIPTDIR # Test help python ./scanCode.py . -h diff --git a/scancode/travis.cfg b/scancode/travis.cfg index d81e10f..c50e2ac 100644 --- a/scancode/travis.cfg +++ b/scancode/travis.cfg @@ -5,6 +5,9 @@ # resides. [Licenses] ASFLicenseHeader.txt +ASFMinifiedLicenseHeader.txt +ASFLicenseHeaderLua.txt +ApacheIBMLicenseHeader.txt # Filters (path/filename) with wildcards and associated scan checks # that are to be run against them. The checks are actual valid @@ -18,6 +21,7 @@ ASFLicenseHeader.txt *.gradle=no_tabs, no_trailing_spaces, eol_at_eof *.md=no_tabs, eol_at_eof *.go=has_block_license, no_tabs, no_trailing_spaces, eol_at_eof +*.lua=has_block_license build.xml=no_tabs, no_trailing_spaces, eol_at_eof deploy.xml=no_tabs, no_trailing_spaces, eol_at_eof @@ -31,7 +35,6 @@ tests/mixed tests/MixedCase tests/exclude - [Options] # Not all code files allow licenses to appear starting at the first character # of the file. This option tells the scan to allow licenses to appear starting -- To stop receiving notification emails like this one, please contact ['"commits@openwhisk.apache.org" <commits@openwhisk.apache.org>'].