diff options
author | Victor Morales <v.morales@samsung.com> | 2020-08-28 16:35:12 -0400 |
---|---|---|
committer | Victor Morales <v.morales@samsung.com> | 2020-08-28 17:17:01 -0400 |
commit | 6fb97028e93a7844000204be53ed937a47d9082f (patch) | |
tree | 4f6c8936d7205a1ea512f350bd79c6a57cee4487 /jjb/kuberef/tox.ini | |
parent | 857de0535fcac0b353cc7f3c555060aa5807cfc7 (diff) |
Improve kuberef lint script
The OPNFV security audit releng's job prevent to retrieve binaries from
external sources which results on depending to the binaries provided
by the OS package managers. This change pretends to cover different
scenarios where the Jenkins builder is unknown.
Signed-off-by: Victor Morales <v.morales@samsung.com>
Change-Id: I37d9b15d3ac9de0b06a96e07eed90f7cc717f444
Diffstat (limited to 'jjb/kuberef/tox.ini')
-rw-r--r-- | jjb/kuberef/tox.ini | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/jjb/kuberef/tox.ini b/jjb/kuberef/tox.ini new file mode 100644 index 000000000..328a05df0 --- /dev/null +++ b/jjb/kuberef/tox.ini @@ -0,0 +1,28 @@ +#!/bin/bash +# SPDX-license-identifier: Apache-2.0 +############################################################################## +# Copyright (c) 2020 Samsung Electronics +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +[tox] +minversion = 3.5 +skipsdist = True +envlist = lint + +[testenv] +passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY +usedevelop = False +install_command = pip install {opts} {packages} + +[testenv:lint] +deps = + {env:BASHATE_INSTALL_PATH:bashate} +whitelist_externals = bash +commands = bash -c "find {toxinidir} \ + -not -path {toxinidir}/.tox/\* \ +# E006 check for lines longer than 79 columns + -name \*.sh | xargs bashate -v -iE006" |