Update KUD to python3
[multicloud/k8s.git] / tox.ini
1 # SPDX-license-identifier: Apache-2.0
2 ##############################################################################
3 # Copyright (c) 2018
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 [tox]
11 minversion = 1.6
12 skipsdist = True
13 envlist = bashate
14
15 [testenv]
16 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
17 usedevelop = False
18 install_command = pip install --no-cache-dir {opts} {packages}
19
20 [testenv:bashate]
21 deps =
22    {env:BASHATE_INSTALL_PATH:bashate}
23    rstcheck
24 whitelist_externals = bash
25 commands = bash -c "find {toxinidir} -not -path {toxinidir}/.tox/\* \
26    -not -path {toxinidir}/pkg/dep/\* \
27    -not -path {toxinidir}/pkg/mod/\* \
28    -not -path {toxinidir}/src/k8splugin/vendor/\* \
29    -not -path {toxinidir}/src/github.com/\* \
30    -name \*.sh -type f \
31 # E006 check for lines longer than 79 columns
32    -print0 | xargs -0 bashate -v -iE006"
33    bash -c "find {toxinidir}/docs \
34    -name \*.rst -type f -print0 | xargs -0 rstcheck --report warning"
35
36 [testenv:docs]
37 deps = sphinx
38 commands = sphinx-build -W -b html docs docs/build/html