| [tox] |
| envlist = py{27,34,35,36}-{unit,chrome,edge,firefox,ie,remote,safari}, docs, flake8 |
| |
| [testenv] |
| passenv = DISPLAY PYTEST_ADDOPTS CI TRAVIS |
| commands = |
| py{27,34,35,36}-unit: py.test -n=auto {posargs:test/unit} |
| py{27,36}-chrome: py.test --driver=Chrome {posargs} |
| py{27,36}-edge: py.test --driver=Edge {posargs} |
| py{27,36}-firefox: py.test --driver=Firefox {posargs} |
| py{27,36}-ie: py.test --driver=Ie {posargs} |
| py{27,36}-marionette: py.test --driver=Marionette {posargs} |
| py{27,36}-remote: py.test --driver=Remote {posargs} |
| py{27,36}-safari: py.test --driver=Safari {posargs} |
| install_command = pip install -v --no-index --find-links=../third_party/py {opts} {packages} |
| deps = |
| pytest==3.0.3 |
| pytest-instafail==0.3.0 |
| pytest-mock==1.5.0 |
| py{27,33,34,35,36}-{unit,chrome,firefox,marionette}: pytest-xdist==1.15 |
| urllib3==1.23 |
| |
| [testenv:docs] |
| skip_install = true |
| deps = |
| Sphinx==1.8.2 |
| commands = sphinx-build -W -b html -d ../build/doctrees docs/source ../build/docs/api/py {posargs} |
| |
| [testenv:flake8] |
| skip_install = true |
| deps = flake8 |
| commands = flake8 {posargs} |