From: Thanh Ha Date: Thu, 3 Aug 2017 21:23:32 +0000 (-0400) Subject: Add license header test for shell scripts X-Git-Tag: v0.7.0~20 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F34%2F5734%2F2;p=releng%2Fglobal-jjb.git Add license header test for shell scripts Add a test to check license headers exist in shell scripts. Change-Id: I4f6f9874f79d55f5ab52b17a4dafa9d836f90d34 Signed-off-by: Thanh Ha --- diff --git a/license-header.txt b/license-header.txt new file mode 100644 index 00000000..6370a913 --- /dev/null +++ b/license-header.txt @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: EPL-1.0 +############################################################################## +# COPYRIGHT +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +############################################################################## diff --git a/tox.ini b/tox.ini index 8f9cb513..c27b3635 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 1.6 -envlist = coala,jjb +envlist = coala,jjb,license skipsdist = true [testenv:coala] @@ -26,3 +26,7 @@ commands = whitelist_externals = cp rm + +[testenv:license] +deps = lftools +commands = lftools license check-dir -r '.+' shell