2015-12-11 16:12:38 +00:00
|
|
|
environment:
|
|
|
|
matrix:
|
2018-01-24 17:12:59 -08:00
|
|
|
- JOB: "2.7 32-bit"
|
2016-04-10 15:34:57 +01:00
|
|
|
PYTHON_HOME: "C:\\Python27"
|
2015-12-11 16:12:38 +00:00
|
|
|
|
2018-07-24 12:23:40 +01:00
|
|
|
- JOB: "3.7 64-bit"
|
|
|
|
PYTHON_HOME: "C:\\Python37-x64"
|
|
|
|
|
2015-12-11 16:12:38 +00:00
|
|
|
install:
|
2016-04-10 15:34:57 +01:00
|
|
|
# If there is a newer build queued for the same PR, cancel this one.
|
|
|
|
# The AppVeyor 'rollout builds' option is supposed to serve the same
|
|
|
|
# purpose but it is problematic because it tends to cancel builds pushed
|
|
|
|
# directly to master instead of just PR builds (or the converse).
|
|
|
|
# credits: JuliaLang developers.
|
|
|
|
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
|
|
|
|
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
|
|
|
|
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
|
|
|
|
throw "There are newer queued builds for this pull request, failing early." }
|
|
|
|
|
2016-02-06 22:04:51 +00:00
|
|
|
# Prepend Python to the PATH of this build
|
2016-04-10 15:34:57 +01:00
|
|
|
- "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;%PATH%"
|
2015-12-11 16:12:38 +00:00
|
|
|
|
|
|
|
# check that we have the expected version and architecture for Python
|
|
|
|
- "python --version"
|
|
|
|
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
|
|
|
|
|
2016-08-14 15:07:31 +01:00
|
|
|
# upgrade pip and setuptools to avoid out-of-date warnings
|
2016-11-27 10:00:13 +00:00
|
|
|
- "python -m pip install --disable-pip-version-check --user --upgrade pip setuptools"
|
2015-12-11 16:12:38 +00:00
|
|
|
|
2016-02-06 22:04:51 +00:00
|
|
|
# install the dependencies to run the tests
|
2016-12-26 15:45:59 +00:00
|
|
|
- "python -m pip install tox"
|
2018-01-24 17:12:59 -08:00
|
|
|
|
2015-12-11 17:34:05 +00:00
|
|
|
build: false
|
|
|
|
|
2015-12-11 16:12:38 +00:00
|
|
|
test_script:
|
2018-07-25 19:33:39 +01:00
|
|
|
# run tests with the current 'python' in %PATH%, and measure test coverage
|
|
|
|
- "tox -e py-cov"
|
2015-12-11 16:12:38 +00:00
|
|
|
|
2016-12-26 15:45:59 +00:00
|
|
|
after_test:
|
2018-07-25 19:33:39 +01:00
|
|
|
# upload test coverage to Codecov.io
|
2016-12-26 15:45:59 +00:00
|
|
|
- "tox -e codecov"
|
|
|
|
|
2015-12-12 19:57:23 +00:00
|
|
|
notifications:
|
|
|
|
- provider: Email
|
|
|
|
to:
|
2016-09-27 20:52:09 +01:00
|
|
|
- fonttools-dev@googlegroups.com
|
2015-12-12 19:57:23 +00:00
|
|
|
on_build_success: false
|
|
|
|
on_build_failure: true
|
|
|
|
on_build_status_changed: true
|