From: Thanh Ha Date: Thu, 3 Aug 2017 21:20:23 +0000 (-0400) Subject: Verify lftools scripts have license headers X-Git-Tag: v0.8.0~6 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F33%2F5733%2F3;p=releng%2Flftools.git 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 --- 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