From 94864967a0b2676c5ce4dd45ee9dce5ccaf10a30 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Thu, 3 Aug 2017 17:23:32 -0400 Subject: [PATCH] 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 --- license-header.txt | 9 +++++++++ tox.ini | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 license-header.txt 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 -- 2.16.6