0001-ci-speed-up-CI-using-multiple-processes-with-pytest-.patch
Jenkinsfile | ||
---|---|---|
8 | 8 |
stages { |
9 | 9 |
stage('Unit Tests') { |
10 | 10 |
steps { |
11 |
sh 'tox -rv'
|
|
11 |
sh 'NUMPROCESSES=6 tox -rv '
|
|
12 | 12 |
} |
13 | 13 |
post { |
14 | 14 |
always { |
tox.ini | ||
---|---|---|
19 | 19 |
[testenv] |
20 | 20 |
usedevelop = true |
21 | 21 |
setenv = |
22 |
NUMPROCESSES={env:NUMPROCESSES:1} |
|
22 | 23 |
DJANGO_SETTINGS_MODULE=bijoe.settings |
23 | 24 |
BIJOE_SETTINGS_FILE=tests/settings.py |
24 | 25 |
SETUPTOOLS_USE_DISTUTILS=stdlib |
... | ... | |
30 | 31 |
pytest-cov |
31 | 32 |
pytest-django |
32 | 33 |
pytest-freezegun |
34 |
pytest-xdist |
|
33 | 35 |
WebTest |
34 | 36 |
django-webtest<1.9.3 |
35 | 37 |
mock |
... | ... | |
41 | 43 |
dj22: djangorestframework>=3.7 |
42 | 44 |
dj22: https://git.entrouvert.org/hobo.git/snapshot/hobo-main.tar.gz |
43 | 45 |
commands = |
44 |
py3-dj22: py.test {posargs: --junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=bijoe tests/} |
|
46 |
py3-dj22: py.test {posargs: --numprocesses {env:NUMPROCESSES:1} --junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=bijoe tests/}
|
|
45 | 47 | |
46 | 48 |
[pytest] |
47 | 49 |
filterwarnings = |
48 |
- |