From 4485c2d274fbb5218695ae5e7356d028f593b95a Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Thu, 3 Aug 2017 17:20:23 -0400 Subject: [PATCH] Verify lftools scripts have license headers Add a test to check for license headers in Python and Shell code. Change-Id: I61b82d463105fca9bb2a0385ca18482ec0fea7c0 Signed-off-by: Thanh Ha --- shell/deploy | 1 - shell/fix_yamllint | 3 +-- shell/sign | 1 - shell/version | 1 - tox.ini | 8 ++++++++ 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/shell/deploy b/shell/deploy index 2661bd81..3a7c042f 100755 --- a/shell/deploy +++ b/shell/deploy @@ -1,5 +1,4 @@ #!/bin/bash - # SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2016, 2017 The Linux Foundation and others. diff --git a/shell/fix_yamllint b/shell/fix_yamllint index 24288788..32cdf9bb 100755 --- a/shell/fix_yamllint +++ b/shell/fix_yamllint @@ -1,6 +1,5 @@ #!/usr/bin/env bash - -# @License EPL-1.0 +# SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2016, 2017 The Linux Foundation and others. # diff --git a/shell/sign b/shell/sign index 96b662de..dbd421f5 100755 --- a/shell/sign +++ b/shell/sign @@ -1,5 +1,4 @@ #!/bin/bash - # SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2017 The Linux Foundation and others. diff --git a/shell/version b/shell/version index 6131a8e8..6099156a 100755 --- a/shell/version +++ b/shell/version @@ -1,5 +1,4 @@ #!/bin/bash - # SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2014, 2017 The Linux Foundation and others. diff --git a/tox.ini b/tox.ini index 2483f759..f291b193 100644 --- a/tox.ini +++ b/tox.ini @@ -4,6 +4,7 @@ envlist = coala, docs, docs-linkcheck, + license, py2, py3 @@ -37,3 +38,10 @@ whitelist_externals = echo [testenv:docs-linkcheck] deps = -rrequirements.txt commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck + +[testenv:license] +deps = + lftools +commands = + lftools license check-dir lftools + lftools license check-dir -r '.+' shell -- 2.16.6