Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "{build}"
- branches:
- only:
- - RC_1_2
- image: Previous Visual Studio 2015
- clone_depth: 1
- environment:
- matrix:
- - cmake: 1
- - variant: test_release
- compiler: msvc-14.0
- model: 64
- python: 1
- crypto: openssl
- bjam: 1
- install:
- - git submodule update --init --recursive
- - set ROOT_DIRECTORY=%CD%
- - cd %ROOT_DIRECTORY%
- - if not defined compiler ( set compiler="" )
- - if not defined crypto ( set crypto=built-in )
- - if not defined linkflags ( set linkflags="" )
- - if not defined include ( set include="" )
- - cd %ROOT_DIRECTORY%
- - set BOOST_ROOT=c:\Libraries\boost_1_63_0
- - set BOOST_BUILD_PATH=%BOOST_ROOT%\tools\build
- - echo %BOOST_ROOT%
- - echo %BOOST_BUILD_PATH%
- - set PATH=%PATH%;%BOOST_BUILD_PATH%\src\engine\bin.ntx86
- - ps: '"using msvc : 14.0 ;`nusing gcc : : : <cxxflags>-std=c++11 ;`nusing python : 3.7 : c:\\Python37-x64 : c:\\Python37-x64\\include : c:\\Python37-x64\\libs ;`n" | Set-Content $env:HOMEDRIVE\$env:HOMEPATH\user-config.jam'
- - type %HOMEDRIVE%%HOMEPATH%\user-config.jam
- - cd %ROOT_DIRECTORY%
- - set PATH=c:\msys64\mingw32\bin;%PATH%
- - g++ --version
- - python --version
- - echo %ROOT_DIRECTORY%
- - cd %BOOST_BUILD_PATH%\src\engine
- - build.bat >nul
- - cd %ROOT_DIRECTORY%
- build_script:
- # examples
- - cd %ROOT_DIRECTORY%\examples
- - if defined bjam (
- b2.exe --hash openssl-version=pre1.1 warnings=all warnings-as-errors=on -j %NUMBER_OF_PROCESSORS% %compiler% address-model=%model% picker-debugging=on invariant-checks=full variant=%variant% %linkflags% %include% link=shared crypto=%crypto%
- )
- # tools
- - cd %ROOT_DIRECTORY%\tools
- - if defined bjam (
- b2.exe --hash openssl-version=pre1.1 warnings=all warnings-as-errors=on -j %NUMBER_OF_PROCESSORS% %compiler% address-model=%model% picker-debugging=on invariant-checks=full variant=%variant% %linkflags% %include% link=shared crypto=%crypto%
- )
- # test
- - cd %ROOT_DIRECTORY%\test
- - if defined bjam (
- b2.exe --hash openssl-version=pre1.1 warnings=all warnings-as-errors=on -j %NUMBER_OF_PROCESSORS% %compiler% address-model=%model% picker-debugging=on invariant-checks=full variant=%variant% %linkflags% %include% link=shared crypto=%crypto% win-tests test_upnp test_natpmp testing.execute=off
- )
- # python binding
- - cd %ROOT_DIRECTORY%\bindings\python
- # we use 64 bit python builds
- - if defined python (
- b2.exe --hash openssl-version=pre1.1 warnings=all warnings-as-errors=on -j %NUMBER_OF_PROCESSORS% %compiler% address-model=%model% picker-debugging=on invariant-checks=full variant=%variant% %linkflags% %include% link=shared crypto=%crypto% libtorrent-link=shared stage_module stage_dependencies
- )
- # minimal support for cmake build
- - cd %ROOT_DIRECTORY%
- - mkdir build && cd build
- - if defined cmake (
- set "PATH=c:\Python37-x64;%PATH%" &&
- cmake -DCMAKE_CXX_STANDARD=11 -Dbuild_tests=ON -Dbuild_examples=ON -Dbuild_tools=ON -Dpython-bindings=%python% -Dboost-python-module-name="python" -Dskip-python-runtime-test=true -DPython_ADDITIONAL_VERSIONS="3.7" -G "Visual Studio 14 2015 Win64" .. &&
- cmake --build . --config Release -- -verbosity:minimal
- )
- test_script:
- - cd %ROOT_DIRECTORY%\test
- - if defined bjam (
- appveyor-retry b2.exe -l400 --hash openssl-version=pre1.1 warnings=all warnings-as-errors=on -j %NUMBER_OF_PROCESSORS% %compiler% address-model=%model% picker-debugging=on invariant-checks=full variant=%variant% %linkflags% %include% link=shared crypto=%crypto% win-tests
- )
- - cd %ROOT_DIRECTORY%\bindings\python
- # we use 64 bit python build
- - if defined python (
- copy dependencies\*.* .
- & c:\Python37-x64\python.exe test.py -b
- )
- - if defined cmake (
- appveyor-retry ctest
- )
- artifacts:
- - path: (%ROOT_DIRECTORY%\bindings\python\)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement