Advertisement
Guest User

appveyor.yml

a guest
Oct 15th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 KB | None | 0 0
  1. version: "{build}"
  2. branches:
  3. only:
  4. - RC_1_2
  5.  
  6. image: Previous Visual Studio 2015
  7. clone_depth: 1
  8. environment:
  9. matrix:
  10. - cmake: 1
  11. - variant: test_release
  12. compiler: msvc-14.0
  13. model: 64
  14. python: 1
  15. crypto: openssl
  16. bjam: 1
  17.  
  18. install:
  19. - git submodule update --init --recursive
  20. - set ROOT_DIRECTORY=%CD%
  21. - cd %ROOT_DIRECTORY%
  22. - if not defined compiler ( set compiler="" )
  23. - if not defined crypto ( set crypto=built-in )
  24. - if not defined linkflags ( set linkflags="" )
  25. - if not defined include ( set include="" )
  26. - cd %ROOT_DIRECTORY%
  27. - set BOOST_ROOT=c:\Libraries\boost_1_63_0
  28. - set BOOST_BUILD_PATH=%BOOST_ROOT%\tools\build
  29. - echo %BOOST_ROOT%
  30. - echo %BOOST_BUILD_PATH%
  31. - set PATH=%PATH%;%BOOST_BUILD_PATH%\src\engine\bin.ntx86
  32. - 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'
  33. - type %HOMEDRIVE%%HOMEPATH%\user-config.jam
  34. - cd %ROOT_DIRECTORY%
  35. - set PATH=c:\msys64\mingw32\bin;%PATH%
  36. - g++ --version
  37. - python --version
  38. - echo %ROOT_DIRECTORY%
  39. - cd %BOOST_BUILD_PATH%\src\engine
  40. - build.bat >nul
  41. - cd %ROOT_DIRECTORY%
  42.  
  43. build_script:
  44. # examples
  45. - cd %ROOT_DIRECTORY%\examples
  46. - if defined bjam (
  47. 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%
  48. )
  49.  
  50. # tools
  51. - cd %ROOT_DIRECTORY%\tools
  52. - if defined bjam (
  53. 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%
  54. )
  55.  
  56. # test
  57. - cd %ROOT_DIRECTORY%\test
  58. - if defined bjam (
  59. 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
  60. )
  61.  
  62. # python binding
  63. - cd %ROOT_DIRECTORY%\bindings\python
  64. # we use 64 bit python builds
  65. - if defined python (
  66. 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
  67. )
  68.  
  69. # minimal support for cmake build
  70. - cd %ROOT_DIRECTORY%
  71. - mkdir build && cd build
  72. - if defined cmake (
  73. set "PATH=c:\Python37-x64;%PATH%" &&
  74. 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" .. &&
  75. cmake --build . --config Release -- -verbosity:minimal
  76. )
  77.  
  78. test_script:
  79. - cd %ROOT_DIRECTORY%\test
  80. - if defined bjam (
  81. 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
  82. )
  83.  
  84. - cd %ROOT_DIRECTORY%\bindings\python
  85. # we use 64 bit python build
  86. - if defined python (
  87. copy dependencies\*.* .
  88. & c:\Python37-x64\python.exe test.py -b
  89. )
  90.  
  91. - if defined cmake (
  92. appveyor-retry ctest
  93. )
  94.  
  95. artifacts:
  96. - path: (%ROOT_DIRECTORY%\bindings\python\)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement