2016-07-20 20:29:24 +02:00
|
|
|
version: "{build}"
|
2015-08-20 00:38:46 +02:00
|
|
|
branches:
|
|
|
|
only:
|
2018-12-01 12:41:13 +01:00
|
|
|
- master
|
2019-01-13 14:49:08 +01:00
|
|
|
- RC_1_2
|
2018-12-01 12:41:13 +01:00
|
|
|
- RC_1_1
|
2019-11-17 13:33:47 +01:00
|
|
|
image: Visual Studio 2017
|
2015-08-20 00:38:46 +02:00
|
|
|
clone_depth: 1
|
|
|
|
environment:
|
|
|
|
matrix:
|
2018-12-01 12:41:13 +01:00
|
|
|
- cmake: 1
|
|
|
|
- variant: test_debug
|
|
|
|
compiler: msvc-14.0
|
|
|
|
model: 64
|
|
|
|
sim: 1
|
|
|
|
- variant: test_debug
|
|
|
|
compiler: msvc-14.0
|
|
|
|
model: 32
|
|
|
|
bjam: 1
|
|
|
|
- variant: test_release
|
|
|
|
compiler: msvc-14.0
|
|
|
|
model: 64
|
|
|
|
python: 1
|
|
|
|
crypto: openssl
|
|
|
|
bjam: 1
|
|
|
|
- variant: test_debug
|
|
|
|
compiler: gcc
|
|
|
|
model: 32
|
|
|
|
crypto: openssl
|
|
|
|
bjam: 1
|
2015-08-20 00:38:46 +02:00
|
|
|
|
|
|
|
install:
|
2018-12-01 12:41:13 +01:00
|
|
|
- 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%
|
2019-11-17 13:33:47 +01:00
|
|
|
- set BOOST_ROOT=c:\Libraries\boost_1_69_0
|
2018-12-01 12:41:13 +01:00
|
|
|
- set BOOST_BUILD_PATH=%BOOST_ROOT%\tools\build
|
|
|
|
- echo %BOOST_ROOT%
|
|
|
|
- echo %BOOST_BUILD_PATH%
|
2019-11-17 13:33:47 +01:00
|
|
|
- set PATH=%PATH%;%BOOST_BUILD_PATH%
|
2018-12-01 12:41:13 +01:00
|
|
|
- ps: '"using msvc : 14.0 ;`nusing gcc : : : <cxxflags>-std=c++11 ;`nusing python : 3.5 : c:\\Python35-x64 : c:\\Python35-x64\\include : c:\\Python35-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
|
2019-11-17 13:33:47 +01:00
|
|
|
- set PATH=c:\Python27-x64;%PATH%
|
2019-11-18 14:02:33 +01:00
|
|
|
- set PYTHON_INTERPRETER=c:\Python27-x64\python.exe
|
2018-12-01 12:41:13 +01:00
|
|
|
- python --version
|
|
|
|
- echo %ROOT_DIRECTORY%
|
2019-11-17 13:33:47 +01:00
|
|
|
- cd %BOOST_BUILD_PATH%
|
|
|
|
- bootstrap.bat >nul
|
2018-12-01 12:41:13 +01:00
|
|
|
- cd %ROOT_DIRECTORY%
|
2015-10-12 06:04:29 +02:00
|
|
|
|
2015-08-20 00:38:46 +02:00
|
|
|
build_script:
|
2018-12-01 12:41:13 +01:00
|
|
|
# examples
|
|
|
|
- cd %ROOT_DIRECTORY%\examples
|
|
|
|
- if defined bjam (
|
2019-11-17 13:33:47 +01:00
|
|
|
b2.exe --abbreviate-paths 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% asserts=on export-extra=on
|
2018-12-01 12:41:13 +01:00
|
|
|
)
|
2018-11-10 01:38:20 +01:00
|
|
|
|
2018-12-01 12:41:13 +01:00
|
|
|
# tools
|
|
|
|
- cd %ROOT_DIRECTORY%\tools
|
|
|
|
- if defined bjam (
|
2019-11-17 13:33:47 +01:00
|
|
|
b2.exe --abbreviate-paths 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% asserts=on export-extra=on
|
2018-12-01 12:41:13 +01:00
|
|
|
)
|
2015-10-12 06:04:29 +02:00
|
|
|
|
2018-12-01 12:41:13 +01:00
|
|
|
# test
|
|
|
|
- cd %ROOT_DIRECTORY%\test
|
|
|
|
- if defined bjam (
|
2019-11-17 13:33:47 +01:00
|
|
|
b2.exe --abbreviate-paths 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% asserts=on export-extra=on testing.execute=off
|
2018-12-01 12:41:13 +01:00
|
|
|
)
|
2016-05-31 23:48:41 +02:00
|
|
|
|
2018-12-01 12:41:13 +01:00
|
|
|
# python binding
|
|
|
|
- cd %ROOT_DIRECTORY%\bindings\python
|
|
|
|
# we use 64 bit python builds
|
|
|
|
- if defined python (
|
2019-11-17 13:33:47 +01:00
|
|
|
b2.exe --abbreviate-paths 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% asserts=on export-extra=on libtorrent-link=shared stage_module stage_dependencies
|
2018-12-01 12:41:13 +01:00
|
|
|
)
|
2016-04-24 15:17:58 +02:00
|
|
|
|
2018-12-01 12:41:13 +01:00
|
|
|
# simulations
|
|
|
|
- cd %ROOT_DIRECTORY%\simulation
|
|
|
|
- if defined sim (
|
2019-11-17 13:33:47 +01:00
|
|
|
b2.exe --hash openssl-version=pre1.1 warnings=all warnings-as-errors=on -j %NUMBER_OF_PROCESSORS% %compiler% address-model=%model% debug-iterators=off picker-debugging=on invariant-checks=full test_debug %linkflags% %include% boost-link=default link=static crypto=built-in define=BOOST_ASIO_DISABLE_IOCP asserts=on testing.execute=off
|
2018-12-01 12:41:13 +01:00
|
|
|
)
|
2016-04-24 15:17:58 +02:00
|
|
|
|
2018-12-01 12:41:13 +01:00
|
|
|
# minimal support for cmake build
|
|
|
|
- cd %ROOT_DIRECTORY%
|
|
|
|
- mkdir build && cd build
|
|
|
|
- if defined cmake (
|
2019-11-17 13:33:47 +01:00
|
|
|
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="2.7" -G "Visual Studio 15 2017 Win64" .. &&
|
2019-02-18 00:23:19 +01:00
|
|
|
cmake --build . --config Release -- -verbosity:minimal
|
2018-12-01 12:41:13 +01:00
|
|
|
)
|
2018-02-04 06:04:23 +01:00
|
|
|
|
2016-04-24 15:17:58 +02:00
|
|
|
test_script:
|
2018-12-01 12:41:13 +01:00
|
|
|
- cd %ROOT_DIRECTORY%\test
|
|
|
|
- if defined bjam (
|
2019-11-17 13:33:47 +01:00
|
|
|
appveyor-retry b2.exe -l500 --abbreviate-paths 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% asserts=on export-extra=on win-tests
|
2018-12-01 12:41:13 +01:00
|
|
|
)
|
2016-07-25 23:58:00 +02:00
|
|
|
|
2018-12-01 12:41:13 +01:00
|
|
|
- cd %ROOT_DIRECTORY%\bindings\python
|
|
|
|
# we use 64 bit python build
|
|
|
|
- if defined python (
|
|
|
|
copy dependencies\*.* .
|
|
|
|
& c:\Python35-x64\python.exe test.py -b
|
|
|
|
)
|
2016-07-06 19:52:15 +02:00
|
|
|
|
2018-12-01 12:41:13 +01:00
|
|
|
- if defined cmake (
|
|
|
|
appveyor-retry ctest
|
|
|
|
)
|
2018-11-10 01:38:20 +01:00
|
|
|
|
2018-12-01 12:41:13 +01:00
|
|
|
# simulation tests
|
|
|
|
# debug iterators are turned off here because msvc has issues with noexcept
|
|
|
|
# specifiers when debug iterators are enabled. Specifically, constructors that
|
|
|
|
# allocate memory are still marked as noexcept. That results in program
|
|
|
|
# termination
|
|
|
|
# the IOCP backend in asio appears to have an issue where it hangs under
|
|
|
|
# certain unexpected terminations (through exceptions)
|
|
|
|
- cd %ROOT_DIRECTORY%\simulation
|
|
|
|
- if defined sim (
|
2019-11-17 13:33:47 +01:00
|
|
|
b2.exe --hash openssl-version=pre1.1 warnings-as-errors=on -j %NUMBER_OF_PROCESSORS% %compiler% address-model=%model% debug-iterators=off picker-debugging=on invariant-checks=full test_debug %linkflags% %include% boost-link=default link=static crypto=built-in define=BOOST_ASIO_DISABLE_IOCP asserts=on
|
2018-12-01 12:41:13 +01:00
|
|
|
)
|