~ubuntuone-pqm-team/python-swiftclient/trunk

« back to all changes in this revision

Viewing changes to tox.ini

  • Committer: Vu Cong Tuan
  • Date: 2018-11-05 02:52:03 UTC
  • Revision ID: git-v1:9acdfe0b460048420551bb84fb3cf41fb1e4a67e
Switch to stestr

According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Ic098f8560599554e0b6bb16ae326d4d30a8a5504

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
       .[keystone]
17
17
commands = sh -c '(find . -not \( -type d -name .?\* -prune \) \
18
18
           \( -type d -name "__pycache__" -or -type f -name "*.py[co]" \) \
19
 
           -print0; find . -name "*.dbm*" -print0) | xargs -0 rm -rf'
20
 
           python setup.py testr --testr-args="{posargs}"
 
19
           -print0) | xargs -0 rm -rf'
 
20
           stestr run {posargs}
21
21
whitelist_externals = sh
22
22
passenv = SWIFT_* *_proxy
23
23
 
32
32
 
33
33
[testenv:cover]
34
34
basepython = python3
35
 
commands = python setup.py testr --coverage
36
 
           coverage report
 
35
setenv =
 
36
    PYTHON=coverage run --source swiftclient --parallel-mode
 
37
commands =
 
38
    stestr run
 
39
    coverage combine
 
40
    coverage html -d cover
 
41
    coverage xml -o cover/coverage.xml
 
42
    coverage report
37
43
 
38
44
[testenv:func]
39
45
basepython = python3
40
 
setenv = OS_TEST_PATH=tests.functional
 
46
setenv =
 
47
    OS_TEST_PATH=tests.functional
 
48
    PYTHON=coverage run --source swiftclient --parallel-mode
41
49
whitelist_externals =
42
50
    coverage
43
51
    rm
44
52
commands =
45
 
    python setup.py testr --coverage --testr-args="--concurrency=1"
 
53
    stestr run --concurrency=1
 
54
    coverage combine
 
55
    coverage html -d cover
 
56
    coverage xml -o cover/coverage.xml
46
57
    coverage report -m
47
58
    rm -f .coverage
48
59