| Adam Israel | c3e6c2e | 2018-03-01 09:31:50 -0500 | [diff] [blame] | 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. |
| 5 | |
| 6 | [tox] |
| 7 | envlist = lint,py35 |
| 8 | skipsdist=True |
| 9 | |
| 10 | [testenv] |
| 11 | basepython=python3 |
| 12 | usedevelop=True |
| 13 | # for testing with other python versions |
| 14 | commands=nosetests |
| 15 | deps = |
| 16 | nose |
| 17 | mock |
| 18 | pyyaml |
| 19 | |
| 20 | [testenv:lint] |
| 21 | envdir = {toxworkdir}/py35 |
| 22 | commands = |
| 23 | flake8 --ignore E501 {posargs} juju tests |
| 24 | deps = |
| 25 | flake8 |
| Mike Marchetti | 4b81dfa | 2018-04-18 10:52:18 -0400 | [diff] [blame] | 26 | |
| 27 | [testenv:build] |
| 28 | basepython = python3 |
| 29 | deps = stdeb |
| 30 | setuptools-version-command |
| 31 | commands = python3 setup.py --command-packages=stdeb.command bdist_deb |