1environment: 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 intepreter 5 # See: http://stackoverflow.com/a/13751649/163740 6 CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd" 7 8 matrix: 9 10 # Pre-installed Python versions, which Appveyor may upgrade to 11 # a later point release. 12 # See: http://www.appveyor.com/docs/installed-software#python 13 14 # - PYTHON: "C:\\Python27" 15 # PYTHON_VERSION: "2.7.x" 16 # PYTHON_ARCH: "32" 17 18 - PYTHON: "C:\\Python27-x64" 19 PYTHON_VERSION: "2.7.x" 20 PYTHON_ARCH: "64" 21 22 # - PYTHON: "C:\\Python26" 23 # PYTHON_VERSION: "2.6.x" 24 # PYTHON_ARCH: "32" 25 26 # - PYTHON: "C:\\Python26-x64" 27 # PYTHON_VERSION: "2.6.x" 28 # PYTHON_ARCH: "64" 29 30install: 31 # We need wheel installed to build wheels 32 - "%PYTHON%\\python.exe -m pip install wheel" 33 34 # Install Python (from the official .msi of http://python.org) and pip when 35 # not already installed. 36 - ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 } 37 38 # Prepend newly installed Python to the PATH of this build (this cannot be 39 # done from inside the powershell script as it would require to restart 40 # the parent CMD process). 41 - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" 42 - "SET HOME=." 43 44 # Check that we have the expected version and architecture for Python 45 - "python --version" 46 - "python -c \"import struct; print(struct.calcsize('P') * 8)\"" 47 48 # Upgrade to the latest version of pip to avoid it displaying warnings 49 # about it being out of date. 50 - "%PYTHON%\\python.exe -m pip install --disable-pip-version-check --user --upgrade pip" 51 52 # Install the build dependencies of the project. If some dependencies contain 53 # compiled extensions and are not provided as pre-built wheel packages, 54 # pip will build them from source using the MSVC compiler matching the 55 # target Python version and architecture 56 - "%CMD_IN_ENV% pip install -r requirements.txt" 57 58build_script: 59 # Build the compiled extension 60 - "%CMD_IN_ENV% python setup.py build" 61 62test_script: 63 # Run the project tests 64 # - "%CMD_IN_ENV% python setup.py test" 65 # - "%CMD_IN_ENV% python test/test_pyenvlib.py --verify --simple --compile" 66 67after_test: 68 # If tests are successful, create binary packages for the project. 69 - "%CMD_IN_ENV% python setup.py bdist_wininst" 70 - "%CMD_IN_ENV% python setup.py bdist_msi" 71 - ps: "ls dist" 72 73artifacts: 74 # Archive the generated packages in the ci.appveyor.com build report. 75 - path: dist\* 76 77#on_success: 78# - TODO: upload the content of dist/*.whl to a public wheelhouse 79# 80