Verify lftools scripts have license headers 33/5733/3
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 3 Aug 2017 21:20:23 +0000 (17:20 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 4 Aug 2017 21:13:37 +0000 (17:13 -0400)
Add a test to check for license headers in Python and Shell code.

Change-Id: I61b82d463105fca9bb2a0385ca18482ec0fea7c0
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
shell/deploy
shell/fix_yamllint
shell/sign
shell/version
tox.ini

index 2661bd8..3a7c042 100755 (executable)
@@ -1,5 +1,4 @@
 #!/bin/bash
-
 # SPDX-License-Identifier: EPL-1.0
 ##############################################################################
 # Copyright (c) 2016, 2017 The Linux Foundation and others.
index 2428878..32cdf9b 100755 (executable)
@@ -1,6 +1,5 @@
 #!/usr/bin/env bash
-
-# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
+# SPDX-License-Identifier: EPL-1.0
 ##############################################################################
 # Copyright (c) 2016, 2017 The Linux Foundation and others.
 #
index 96b662d..dbd421f 100755 (executable)
@@ -1,5 +1,4 @@
 #!/bin/bash
-
 # SPDX-License-Identifier: EPL-1.0
 ##############################################################################
 # Copyright (c) 2017 The Linux Foundation and others.
index 6131a8e..6099156 100755 (executable)
@@ -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 2483f75..f291b19 100644 (file)
--- 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