appveyor.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. environment:
  2. PYPI_USER: "dulwich-bot"
  3. PYPI_PSWD:
  4. # See https://www.appveyor.com/docs/build-configuration/#secure-variables
  5. secure: e7DTu4CwOCARfN/mwA8lXQ==
  6. matrix:
  7. - PYTHON: "C:\\Python27"
  8. PYTHON_VERSION: "2.7.x"
  9. PYTHON_ARCH: "32"
  10. - PYTHON: "C:\\Python27-x64"
  11. PYTHON_VERSION: "2.7.x"
  12. PYTHON_ARCH: "64"
  13. - PYTHON: "C:\\Python34"
  14. PYTHON_VERSION: "3.4.x"
  15. PYTHON_ARCH: "32"
  16. - PYTHON: "C:\\Python34-x64"
  17. PYTHON_VERSION: "3.4.x"
  18. PYTHON_ARCH: "64"
  19. DISTUTILS_USE_SDK: "1"
  20. - PYTHON: "C:\\Python35"
  21. PYTHON_VERSION: "3.5.x"
  22. PYTHON_ARCH: "32"
  23. - PYTHON: "C:\\Python35-x64"
  24. PYTHON_VERSION: "3.5.x"
  25. PYTHON_ARCH: "64"
  26. - PYTHON: "C:\\Python36"
  27. PYTHON_VERSION: "3.6.x"
  28. PYTHON_ARCH: "32"
  29. - PYTHON: "C:\\Python36-x64"
  30. PYTHON_VERSION: "3.6.x"
  31. PYTHON_ARCH: "64"
  32. install:
  33. # If there is a newer build queued for the same PR, cancel this one.
  34. # The AppVeyor 'rollout builds' option is supposed to serve the same
  35. # purpose but it is problematic because it tends to cancel builds pushed
  36. # directly to master instead of just PR builds (or the converse).
  37. # credits: JuliaLang developers.
  38. - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
  39. https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
  40. Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
  41. throw "There are newer queued builds for this pull request, failing early." }
  42. - ECHO "Filesystem root:"
  43. - ps: "ls \"C:/\""
  44. - ECHO "Installed SDKs:"
  45. - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
  46. # Install Python (from the official .msi of http://python.org) and pip when
  47. # not already installed.
  48. - ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
  49. # Prepend newly installed Python to the PATH of this build (this cannot be
  50. # done from inside the powershell script as it would require to restart
  51. # the parent CMD process).
  52. - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
  53. # Check that we have the expected version and architecture for Python
  54. - "build.cmd %PYTHON%\\python.exe --version"
  55. - "build.cmd %PYTHON%\\python.exe -c \"import struct; print(struct.calcsize('P') * 8)\""
  56. # Install setuptools/wheel so that we can e.g. use bdist_wheel
  57. - "pip install setuptools wheel"
  58. - "build.cmd %PYTHON%\\python.exe setup.py develop"
  59. build_script:
  60. # Build the compiled extension
  61. - "build.cmd %PYTHON%\\python.exe setup.py build"
  62. test_script:
  63. - "build.cmd %PYTHON%\\python.exe setup.py test"
  64. - "build.cmd %PYTHON%\\pythonw.exe setup.py test"
  65. after_test:
  66. - "build.cmd %PYTHON%\\python.exe setup.py bdist_wheel"
  67. # http://stackoverflow.com/questions/43255455/unicode-character-causing-error-with-bdist-wininst-on-python-3-but-not-python-2
  68. # - "python setup.py bdist_wininst"
  69. - "build.cmd %PYTHON%\\python.exe setup.py bdist_msi"
  70. - ps: "ls dist"
  71. artifacts:
  72. - path: dist\*