Projet

Général

Profil

0001-ci-speed-up-CI-using-multiple-processes-with-pylint-.patch

A. Berriot, 07 juillet 2022 09:01

Télécharger (1,49 ko)

Voir les différences:

Subject: [PATCH] ci: speed up CI using multiple processes with pylint (#67064)

 Jenkinsfile | 2 +-
 tox.ini     | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
Jenkinsfile
6 6
    stages {
7 7
        stage('Unit Tests') {
8 8
            steps {
9
                sh 'tox -rv'
9
                sh 'NUMPROCESSES=8 tox -rv'
10 10
            }
11 11
            post {
12 12
                always {
tox.ini
5 5
[testenv]
6 6
sitepackages = true
7 7
setenv =
8
    NUMPROCESSES={env:NUMPROCESSES:1}
8 9
    SETUPTOOLS_USE_DISTUTILS=stdlib
9 10
    PYTHONPATH={toxinidir}{:}{env:PYTHONPATH:}
10 11
    PYTHONHASHSEED=0
......
21 22
    pytest-mock
22 23
    pytest-cov
23 24
    pytest-django
25
    pytest-xdist
24 26
    pytest-freezegun
25 27
    WebTest
26 28
    mechanize
......
47 49
    pyzbar
48 50
    bleach
49 51
commands =
50
    py.test -v {env:COVERAGE:} --junitxml=junit-{envname}.xml {posargs:tests/}
52
    py.test -v {env:COVERAGE:} --numprocesses={env:NUMPROCESSES:1} --dist loadfile --junitxml=junit-{envname}.xml {posargs:tests/}
51 53
    codestyle: pre-commit run --all-files --show-diff-on-failure
52 54

  
53 55
[testenv:pylint]
54
-