graphene/tox.ini
Syrus Akbary ae7395f9da
Merge pull request #737 from dan98765/pre_commit_runs_as_part_of_continuous_integration
Update .travis.yml file to use tox as script for running tests
2018-07-06 12:50:31 -05:00

35 lines
539 B
INI

[tox]
envlist = flake8,py27,py33,py34,py35,py36,pre-commit,pypy,mypy
skipsdist = true
[testenv]
deps = .[test]
setenv =
PYTHONPATH = .:{envdir}
commands=
py.test --cov=graphene graphene examples
[testenv:pre-commit]
basepython=python3.6
deps =
pre-commit>0.12.0
setenv =
LC_CTYPE=en_US.UTF-8
commands =
pre-commit {posargs:run --all-files}
[testenv:mypy]
basepython=python3.6
deps =
mypy
commands =
mypy graphene
[testenv:flake8]
deps = flake8
commands =
pip install -e .
flake8 graphene
[pytest]