mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-23 01:57:03 +03:00
a245651f66
- Split out tests and add markers to control where they are run in Travis - Run each marker on a separate Travis task - Install pytest-xdist to increase parallelism inside each worker - Set xdist parallelism to 3
20 lines
453 B
INI
20 lines
453 B
INI
[tox]
|
|
skipsdist = true
|
|
envlist = py36,flake8,black,black-template
|
|
|
|
[testenv]
|
|
deps = -rrequirements.txt
|
|
commands = pytest -n 3 -m "not flake8" -m "not black" {posargs:./tests}
|
|
|
|
[testenv:flake8]
|
|
deps = -rrequirements.txt
|
|
commands = pytest -n 3 -m flake8 {posargs:./tests}
|
|
|
|
[testenv:black]
|
|
deps = -rrequirements.txt
|
|
commands = pytest -n 3 -m black {posargs:./tests}
|
|
|
|
[testenv:black-template]
|
|
deps = black
|
|
commands = black --check hooks tests setup.py docs
|