| version: 4.2b4.{build} |
| |
| image: |
| - Visual Studio 2015 |
| |
| environment: |
| matrix: |
| - platform: x86 |
| ARCH: x86 |
| GENERATOR: "Visual Studio 14 2015" |
| PYTHON_VER: Python27 |
| - platform: x86 |
| ARCH: x86 |
| GENERATOR: "Visual Studio 14 2015" |
| PYTHON_VER: Python34 |
| - platform: x64 |
| ARCH: amd64 |
| GENERATOR: "Visual Studio 14 2015 Win64" |
| PYTHON_VER: Python27-x64 |
| - platform: x64 |
| ARCH: amd64 |
| GENERATOR: "Visual Studio 14 2015 Win64" |
| PYTHON_VER: Python34-x64 |
| |
| before_build: |
| - git clone |
| --branch=0.2.2-pre1 |
| https://github.com/yaml/libyaml.git |
| - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %ARCH% |
| - set PATH=C:\%PYTHON_VER%\Scripts;%PATH% |
| - C:\%PYTHON_VER%\python.exe -m pip install cython wheel |
| |
| build_script: |
| - mkdir %PYTHON_VER% |
| - cd %PYTHON_VER% |
| - cmake.exe -G"%GENERATOR%" -DBUILD_SHARED_LIBS=ON ..\libyaml |
| - cmake.exe --build . --config Release --clean-first |
| - cd .. |
| - C:\%PYTHON_VER%\python.exe setup.py |
| --with-libyaml |
| build_ext |
| -I C:\projects\pyyaml\libyaml\include |
| -L C:\projects\pyyaml\%PYTHON_VER%\;C:\projects\pyyaml\%PYTHON_VER%\Release |
| build bdist_wininst bdist_wheel |
| |
| after_build: |
| - C:\%PYTHON_VER%\python.exe setup.py bdist_wininst bdist_wheel |
| - dir %PYTHON_VER%\Release |
| - dir dist |
| |
| # test_script: |
| # - C:\%PYTHON_VER%\python.exe setup.py test |
| artifacts: |
| - path: 'dist\*.whl' |
| - path: 'dist\*.exe' |
| - path: '**\*.dll' |
| - path: '**\*.lib' |