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>
#!/bin/bash
-
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2016, 2017 The Linux Foundation and others.
#!/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.
#
#!/bin/bash
-
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
#!/bin/bash
-
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2014, 2017 The Linux Foundation and others.
coala,
docs,
docs-linkcheck,
+ license,
py2,
py3
[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