-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
29 lines (26 loc) · 919 Bytes
/
tox.ini
File metadata and controls
29 lines (26 loc) · 919 Bytes
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
[tox]
envlist = py27, py34, py35, pep8
[testenv]
deps =
-rrequirements-test.txt
commands =
# This checks that the system-wide setup script works correctly and
# correctly installs all required dependencies. Note that this leaves all
# dependencies installed in the virtualenv which saves time on subsequent
# runs. When making changes to the Rig package dependencies, users should
# ensure they reset this virtualenv to ensure that no dependencies are
# omitted.
python setup.py install
# Run the main test suite against real hardware
py.test tests/ {posargs}
# Run doctests in code
py.test rig/ --doctest-modules
# Run doctests in documentation
py.test docs/ --doctest-glob='*_doctest.rst'
# Uninstall the package ready for the next test run
pip uninstall -y rig
[testenv:pep8]
deps = flake8
commands = flake8 rig tests
[flake8]
exclude = __init__.py