diff options
author | Chris Hunt <chrahunt@gmail.com> | 2020-01-06 19:10:00 -0500 |
---|---|---|
committer | Chris Hunt <chrahunt@gmail.com> | 2020-01-06 19:32:05 -0500 |
commit | 24a9d77e4121f33e5cb102b5f4e372d1475b78e6 (patch) | |
tree | 8f59e3466015605829ec98008e74d4652e62e3c7 /.appveyor.yml | |
parent | 902ee9bb344d301089b7ac5ec6357f837cc81c08 (diff) | |
download | pip-24a9d77e4121f33e5cb102b5f4e372d1475b78e6.tar.gz |
Move AppVeyor tests to Azure Pipelines
This will allow us to have CI running concurrently on multiple PRs,
since we get 30 parallel jobs on Azure Pipelines but only 1 on AppVeyor.
We have parameterized --use-venv since AppVeyor was using it, but Azure
Pipelines was previously not.
Diffstat (limited to '.appveyor.yml')
-rw-r--r-- | .appveyor.yml | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 0da6202b2..000000000 --- a/.appveyor.yml +++ /dev/null @@ -1,69 +0,0 @@ -environment: - matrix: - # Unit and integration tests. - - PYTHON: "C:\\Python27-x64" - RUN_INTEGRATION_TESTS: "True" - - PYTHON: "C:\\Python36-x64" - RUN_INTEGRATION_TESTS: "True" - # Unit tests only. - # Nothing for the moment - -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. - - "python -m certifi >cacert.txt" - - "set /p GIT_SSL_CAINFO=<cacert.txt" - - "set GIT_SSL_CAINFO" - -build: off - -cache: - - '%LOCALAPPDATA%\pip\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" - return $true - } - Write-Host "Pull request $env:APPVEYOR_PULL_REQUEST_NUMBER based on branch $env:APPVEYOR_REPO_BRANCH" - git fetch -q origin +refs/heads/$env:APPVEYOR_REPO_BRANCH - $changes = (git diff --name-only HEAD (git merge-base HEAD FETCH_HEAD)) - Write-Host "Files changed:" - Write-Host $changes - $important = $changes | Where-Object { $_ -NotLike "*.rst" } | - Where-Object { $_ -NotLike "docs*" } | - Where-Object { $_ -NotLike "news*" } | - Where-Object { $_ -NotLike "*travis*" } | - Where-Object { $_ -NotLike ".github*" } - if (!$important) { - Write-Host "Only documentation changes - skipping tests" - return $false - } - - Write-Host "Pull request $env:APPVEYOR_PULL_REQUEST_NUMBER alters code - running tests" - return $true - } - - if (should_run_tests) { - # Shorten paths, workaround https://bugs.python.org/issue18199 - subst T: $env:TEMP - $env:TEMP = "T:\" - $env:TMP = "T:\" - tox -e py -- -m unit -n auto - if ($LastExitCode -eq 0 -and $env:RUN_INTEGRATION_TESTS -eq "True") { - tox -e py -- --use-venv -m integration -n auto --durations=20 - } - } |