Merge "Add License headers"
[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 {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}/src/k8splugin/vendor/\* \
28    -not -path {toxinidir}/src/github.com/\* \
29    -name \*.sh -type f \
30 # E006 check for lines longer than 79 columns
31    -print0 | xargs -0 bashate -v -iE006"
32    bash -c "find {toxinidir}/docs \
33    -name \*.rst -type f -print0 | xargs -0 rstcheck --report warning"
34
35 [testenv:docs]
36 deps = sphinx
37 commands = sphinx-build -W -b html docs docs/build/html