appveyor.yml 2.7 KB

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