Skip to content

Commit

Permalink
Merge pull request #5942 from benoit-pierre/tweak_appveyor
Browse files Browse the repository at this point in the history
Tweak the AppVeyor build
  • Loading branch information
pradyunsg committed Nov 10, 2018
2 parents 6278c6c + e5f9a90 commit b8ee4a6
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
environment:
matrix:
# Unit and integration tests.
- PYTHON: "C:\\Python27"
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python27"
RUN_INTEGRATION_TESTS: "True"
- PYTHON: "C:\\Python36-x64"
Expand All @@ -15,9 +13,15 @@ environment:
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36"

matrix:
fast_finish: true

clone_depth: 50

install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "python --version"
- "python -m pip install --upgrade --disable-pip-version-check pip setuptools wheel"
- "pip install --upgrade certifi tox tox-venv"
- "pip freeze --all"
# Fix git SSL errors.
Expand All @@ -32,6 +36,8 @@ cache:

test_script:
- ps: |
$ErrorActionPreference = "Stop"
function should_run_tests {
if ("$env:APPVEYOR_PULL_REQUEST_NUMBER" -eq "") {
Write-Host "Not a pull request - running tests"
Expand Down Expand Up @@ -61,10 +67,8 @@ test_script:
subst T: $env:TEMP
$env:TEMP = "T:\"
$env:TMP = "T:\"
if ($env:RUN_INTEGRATION_TESTS -eq "True") {
tox -e py -- --use-venv -m integration -n 3 --duration=5
}
else {
tox -e py -- -m unit -n 3
tox -e py -- -m unit
if ($LastExitCode -eq 0 -and $env:RUN_INTEGRATION_TESTS -eq "True") {
tox -e py -- --use-venv -m integration -n2 --durations=20
}
}

0 comments on commit b8ee4a6

Please sign in to comment.