123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- [tox]
- envlist =
- py{27,34,35,36}-django{111,20}
- py36-djangomaster
- lint
- sandbox
-
-
- [testenv]
- commands = coverage run --parallel -m pytest {posargs}
- extras = test
- pip_pre = true
- deps =
- django111: django>=1.11,<2
- django20: django>=2.0,<2.1
-
-
- [testenv:py36-djangomaster]
- commands =
- # Can't specify this in deps - see https://github.com/tox-dev/tox/issues/513
- pip install https://github.com/django/django/archive/master.tar.gz#egg=django
- pytest {posargs}
-
-
- [testenv:coverage-report]
- basepython = python3.6
- deps = coverage
- skip_install = true
- commands =
- coverage combine
- coverage report
-
-
- [testenv:lint]
- basepython = python3.6
- deps =
- flake8
- isort
- commands =
- npm install
- flake8 src tests setup.py
- isort -q --recursive --diff src/ tests/
- npm run eslint
- django-admin.py compilemessages
-
-
- [testenv:sandbox]
- basepython = python3.5
- deps =
- -r{toxinidir}/requirements.txt
- django>=1.11,<2
- whitelist_externals = make
- commands =
- make build_sandbox
|