appveyor.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. environment:
  2. global:
  3. # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
  4. # /E:ON and /V:ON options are not enabled in the batch script interpreter
  5. # See: http://stackoverflow.com/a/13751649/163740
  6. WITH_COMPILER: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
  7. matrix:
  8. - PYTHON: "C:\\Python27"
  9. PYTHON_VERSION: "2.7.8"
  10. PYTHON_ARCH: "32"
  11. - PYTHON: "C:\\Python27-x64"
  12. PYTHON_VERSION: "2.7.8"
  13. PYTHON_ARCH: "64"
  14. WINDOWS_SDK_VERSION: "v7.0"
  15. - PYTHON: "C:\\Python35"
  16. PYTHON_VERSION: "3.5.0"
  17. PYTHON_ARCH: "32"
  18. - PYTHON: "C:\\Python35-x64"
  19. PYTHON_VERSION: "3.5.0"
  20. PYTHON_ARCH: "64"
  21. - PYTHON: "C:\\Python36"
  22. PYTHON_VERSION: "3.6.0"
  23. PYTHON_ARCH: "32"
  24. - PYTHON: "C:\\Python36-x64"
  25. PYTHON_VERSION: "3.6.0"
  26. PYTHON_ARCH: "64"
  27. - PYTHON: "C:\\Python37"
  28. PYTHON_VERSION: "3.7.0"
  29. PYTHON_ARCH: "32"
  30. - PYTHON: "C:\\Python37-x64"
  31. PYTHON_VERSION: "3.7.0"
  32. PYTHON_ARCH: "64"
  33. - PYTHON: "C:\\Python38"
  34. PYTHON_VERSION: "3.8.0"
  35. PYTHON_ARCH: "32"
  36. - PYTHON: "C:\\Python38-x64"
  37. PYTHON_VERSION: "3.8.0"
  38. PYTHON_ARCH: "64"
  39. init:
  40. - ECHO "%PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
  41. - ECHO "Filesystem root:"
  42. - ps: "ls \"C:/\""
  43. - ECHO "Installed SDKs:"
  44. - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
  45. # Prepend newly installed Python to the PATH of this build (this cannot be
  46. # done from inside the powershell script as it would require to restart
  47. # the parent CMD process).
  48. - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
  49. # Check that we have the expected version and architecture for Python
  50. - "python --version"
  51. - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
  52. install:
  53. - "powershell appveyor\\install.ps1"
  54. #build: off
  55. build_script:
  56. - "%WITH_COMPILER% python setup.py build"
  57. test_script:
  58. - "dir %PYTHON%"
  59. - "%WITH_COMPILER% python setup.py test"
  60. after_test:
  61. - "%WITH_COMPILER% python setup.py bdist_wheel"
  62. artifacts:
  63. - path: dist\*
  64. #on_success:
  65. # - TODO: upload the content of dist/*.whl to a public wheelhouse