mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Normalize parallelization parameter.
This commit is contained in:
parent
3ff414be9f
commit
a7edcc730e
4 changed files with 10 additions and 10 deletions
|
@ -64,8 +64,8 @@ test_script:
|
||||||
subst T: $env:TEMP
|
subst T: $env:TEMP
|
||||||
$env:TEMP = "T:\"
|
$env:TEMP = "T:\"
|
||||||
$env:TMP = "T:\"
|
$env:TMP = "T:\"
|
||||||
tox -e py -- -m unit
|
tox -e py -- -m unit -n auto
|
||||||
if ($LastExitCode -eq 0 -and $env:RUN_INTEGRATION_TESTS -eq "True") {
|
if ($LastExitCode -eq 0 -and $env:RUN_INTEGRATION_TESTS -eq "True") {
|
||||||
tox -e py -- --use-venv -m integration -n2 --durations=20
|
tox -e py -- --use-venv -m integration -n auto --durations=20
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ steps:
|
||||||
- bash: pip install --upgrade setuptools tox
|
- bash: pip install --upgrade setuptools tox
|
||||||
displayName: Install Tox
|
displayName: Install Tox
|
||||||
|
|
||||||
- script: tox -e py -- -m unit -n 3 --junit-xml=junit/unit-test.xml
|
- script: tox -e py -- -m unit -n auto --junit-xml=junit/unit-test.xml
|
||||||
env:
|
env:
|
||||||
TEMP: "R:\\Temp"
|
TEMP: "R:\\Temp"
|
||||||
displayName: Tox run unit tests
|
displayName: Tox run unit tests
|
||||||
|
@ -43,7 +43,7 @@ steps:
|
||||||
# https://bugs.python.org/issue18199
|
# https://bugs.python.org/issue18199
|
||||||
$env:TEMP = "R:\Temp"
|
$env:TEMP = "R:\Temp"
|
||||||
|
|
||||||
tox -e py -- -m integration -n 3 --duration=5 --junit-xml=junit/integration-test.xml
|
tox -e py -- -m integration -n auto --duration=5 --junit-xml=junit/integration-test.xml
|
||||||
displayName: Tox run integration tests
|
displayName: Tox run integration tests
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
|
|
|
@ -7,14 +7,14 @@ steps:
|
||||||
- bash: pip install --upgrade setuptools tox
|
- bash: pip install --upgrade setuptools tox
|
||||||
displayName: Install Tox
|
displayName: Install Tox
|
||||||
|
|
||||||
- script: tox -e py -- -m unit --junit-xml=junit/unit-test.xml
|
- script: tox -e py -- -m unit -n auto --junit-xml=junit/unit-test.xml
|
||||||
displayName: Tox run unit tests
|
displayName: Tox run unit tests
|
||||||
|
|
||||||
# Run integration tests in two groups so we will fail faster if there is a failure in the first group
|
# Run integration tests in two groups so we will fail faster if there is a failure in the first group
|
||||||
- script: tox -e py -- -m integration -n 4 --duration=5 -k "not test_install" --junit-xml=junit/integration-test-group0.xml
|
- script: tox -e py -- -m integration -n auto --duration=5 -k "not test_install" --junit-xml=junit/integration-test-group0.xml
|
||||||
displayName: Tox run Group 0 integration tests
|
displayName: Tox run Group 0 integration tests
|
||||||
|
|
||||||
- script: tox -e py -- -m integration -n 4 --duration=5 -k "test_install" --junit-xml=junit/integration-test-group1.xml
|
- script: tox -e py -- -m integration -n auto --duration=5 -k "test_install" --junit-xml=junit/integration-test-group1.xml
|
||||||
displayName: Tox run Group 1 integration tests
|
displayName: Tox run Group 1 integration tests
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
|
|
|
@ -41,12 +41,12 @@ echo "TOXENV=${TOXENV}"
|
||||||
set -x
|
set -x
|
||||||
if [[ "$GROUP" == "1" ]]; then
|
if [[ "$GROUP" == "1" ]]; then
|
||||||
# Unit tests
|
# Unit tests
|
||||||
tox -- --use-venv -m unit
|
tox -- --use-venv -m unit -n auto
|
||||||
# Integration tests (not the ones for 'pip install')
|
# Integration tests (not the ones for 'pip install')
|
||||||
tox -- --use-venv -m integration -n 4 --duration=5 -k "not test_install"
|
tox -- --use-venv -m integration -n auto --duration=5 -k "not test_install"
|
||||||
elif [[ "$GROUP" == "2" ]]; then
|
elif [[ "$GROUP" == "2" ]]; then
|
||||||
# Separate Job for running integration tests for 'pip install'
|
# Separate Job for running integration tests for 'pip install'
|
||||||
tox -- --use-venv -m integration -n 4 --duration=5 -k "test_install"
|
tox -- --use-venv -m integration -n auto --duration=5 -k "test_install"
|
||||||
else
|
else
|
||||||
# Non-Testing Jobs should run once
|
# Non-Testing Jobs should run once
|
||||||
tox
|
tox
|
||||||
|
|
Loading…
Reference in a new issue