/appveyor.yml
https://github.com/mcmtroffaes/pycddlib · YAML · 97 lines · 78 code · 13 blank · 6 comment · 0 complexity · ac2521574ef2db5f18b535b3f2078e9d MD5 · raw file
- image: Visual Studio 2019
- environment:
- global:
- # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
- # /E:ON and /V:ON options are not enabled in the batch script intepreter
- # See: http://stackoverflow.com/a/13751649/163740
- CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
- PYPIPASSWORD:
- secure: L0+QHnkYba7KY7hR3bFsbJ7Y5HW1RtIvOmQtOXQoOck=
- matrix:
- - PYTHON: "C:\\Python36"
- PYTHON_VERSION: "3.6.x"
- PYTHON_ARCH: "32"
- PLATFORMTOOLSET: "v140"
- PLATFORM: "Win32"
- - PYTHON: "C:\\Python36-x64"
- PYTHON_VERSION: "3.6.x"
- PYTHON_ARCH: "64"
- PLATFORMTOOLSET: "v140"
- PLATFORM: "x64"
- - PYTHON: "C:\\Python37"
- PYTHON_VERSION: "3.7.x"
- PYTHON_ARCH: "32"
- PLATFORMTOOLSET: "v140"
- PLATFORM: "Win32"
- - PYTHON: "C:\\Python37-x64"
- PYTHON_VERSION: "3.7.x"
- PYTHON_ARCH: "64"
- PLATFORMTOOLSET: "v140"
- PLATFORM: "x64"
- - PYTHON: "C:\\Python38"
- PYTHON_VERSION: "3.8.x"
- PYTHON_ARCH: "32"
- PLATFORMTOOLSET: "v140"
- PLATFORM: "Win32"
- - PYTHON: "C:\\Python38-x64"
- PYTHON_VERSION: "3.8.x"
- PYTHON_ARCH: "64"
- PLATFORMTOOLSET: "v140"
- PLATFORM: "x64"
- - PYTHON: "C:\\Python39"
- PYTHON_VERSION: "3.9.x"
- PYTHON_ARCH: "32"
- PLATFORMTOOLSET: "v140"
- PLATFORM: "Win32"
- - PYTHON: "C:\\Python39-x64"
- PYTHON_VERSION: "3.9.x"
- PYTHON_ARCH: "64"
- PLATFORMTOOLSET: "v140"
- PLATFORM: "x64"
- install:
- - "git submodule update --init --recursive"
- - ps: ./cddlib-makefile-gmp.ps1
- - "dir cddlib\\lib-src\\"
- - "dir C:\\Python*"
- - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- - "python --version"
- - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
- - "appveyor DownloadFile http://mpir.org/mpir-3.0.0.zip"
- - "7z x mpir-3.0.0.zip > NUL"
- # note: no %CMD_IN_ENV% to ensure latest msbuild to be used
- # because the v90 msbuild does not parse the vc10 project file
- - "msbuild mpir-3.0.0/build.vc14/lib_mpir_gc/lib_mpir_gc.vcxproj /p:Configuration=Release /p:Platform=%PLATFORM% /p:PlatformToolset=%PLATFORMTOOLSET% /verbosity:normal"
- - "dir mpir-3.0.0\\lib\\%PLATFORM%\\Release\\"
- - "%CMD_IN_ENV% pip install --install-option=\"--no-cython-compile\" Cython"
- - "%CMD_IN_ENV% pip install Sphinx pytest wheel twine numpy"
- - "%CMD_IN_ENV% python setup.py build build_ext -Impir-3.0.0/lib/%PLATFORM%/Release/ -Lmpir-3.0.0/build.vc14/lib_mpir_gc/%PLATFORM%/Release/"
- - "%CMD_IN_ENV% python setup.py bdist_wheel"
- - ps: "ls dist"
- - "cd dist"
- - "pip install --pre --no-index --find-links=. pycddlib"
- - "cd .."
- build: false
- test_script:
- - "%CMD_IN_ENV% sphinx-build -b doctest docs/ docs/_doctest"
- - "%CMD_IN_ENV% pytest"
- artifacts:
- - path: dist\*
- # deploy to PyPI if a tagged release
- on_success:
- - "echo [pypi] > %USERPROFILE%\\.pypirc"
- - "echo username=mcmtroffaes >> %USERPROFILE%\\.pypirc"
- - "echo password=%PYPIPASSWORD% >> %USERPROFILE%\\.pypirc"
- - "if [%APPVEYOR_REPO_TAG%]==[true] ( %CMD_IN_ENV% twine upload dist\\*.whl ) else ( echo \"Not deploying because not a tagged commit.\" )"