aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: da179e91d4c0dc02a73d3d02704ce672b501cdf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[tox]
minversion = 1.6
skipsdist = True
envlist = py35,py27,pep8

[testenv]
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
deps = -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'

[testenv:venv]
commands = {posargs}

[testenv:pep8]
whielist_externals =
    bash
commands =
    python ./tools/process-templates.py
    python ./network/endpoints/build_endpoint_map.py --check
    python ./tools/yaml-validate.py .
    bash -c ./tools/roles-data-validation.sh

[testenv:templates]
commands = python ./tools/process-templates.py

[testenv:releasenotes]
commands = bash -c tools/releasenotes_tox.sh

[testenv:cover]
commands = python setup.py test --coverage --coverage-package-name=tripleo_heat_templates --testr-args='{posargs}'

[testenv:genconfig]
commands =
           python ./tools/process-templates.py
           python ./tripleo_heat_templates/environment_generator.py sample-env-generator/

[testenv:genroledata]
whielist_externals =
    bash
commands =
    bash -c tools/roles-data-generate-samples.sh