1 # Tox (http://tox.testrun.org/) is a tool for running tests
2 # in multiple virtualenvs. This configuration file will run the
3 # test suite on all supported python versions. To use it, "pip install tox"
4 # and then run "tox" from this directory.
7 envlist = py3,lint,integration
12 serial
: mark a test that must run by itself
17 # for testing with other python versions
18 commands = py.test --ignore modules/ --tb native -ra -v -s -n auto -k 'not integration' -m 'not serial' {posargs}
25 # These are needed so executing `charm build` succeeds
38 # default tox env, excludes integration and serial tests
40 pytest
--ignore modules
/ --tb native
-ra
-v
-s
-n auto
-k 'not integration'
-m 'not serial'
{posargs
}
43 envdir = {toxworkdir}/py3
45 flake8
--ignore E501
,E402
--exclude tests
/charms
/builds
,tests
/charms
/deps
{posargs
} n2vc tests
50 envdir = {toxworkdir}/py3
51 commands = py.test --ignore modules/ --tb native -ra -v -s -n 1 -k 'integration' -m 'serial' {posargs}
56 setuptools
-version
-command
57 commands = python3 setup.py --command-packages=stdeb.command bdist_deb