2016-07-20 20:29:24 +02:00
|
|
|
version: "{build}"
|
2015-08-20 00:38:46 +02:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2016-01-20 01:20:52 +01:00
|
|
|
- RC_1_1
|
|
|
|
- RC_1_0
|
2015-09-20 20:56:00 +02:00
|
|
|
os: Visual Studio 2015
|
2015-08-20 00:38:46 +02:00
|
|
|
clone_depth: 1
|
|
|
|
environment:
|
|
|
|
matrix:
|
2018-11-10 01:38:20 +01:00
|
|
|
- cmake: 1
|
2015-08-23 23:19:18 +02:00
|
|
|
- variant: test_debug
|
2016-04-24 15:17:58 +02:00
|
|
|
compiler: msvc-14.0
|
|
|
|
model: 64
|
2015-09-21 04:31:04 +02:00
|
|
|
sim: 1
|
2015-08-27 05:51:31 +02:00
|
|
|
- variant: test_debug
|
2016-05-13 03:24:45 +02:00
|
|
|
compiler: msvc-14.0
|
2016-04-24 15:17:58 +02:00
|
|
|
model: 32
|
2018-11-10 01:38:20 +01:00
|
|
|
bjam: 1
|
2015-08-20 00:38:46 +02:00
|
|
|
- variant: test_release
|
2016-05-13 03:24:45 +02:00
|
|
|
compiler: msvc-14.0
|
|
|
|
model: 64
|
2016-07-04 23:08:16 +02:00
|
|
|
python: 1
|
2017-07-14 08:42:56 +02:00
|
|
|
crypto: openssl
|
2018-11-10 01:38:20 +01:00
|
|
|
bjam: 1
|
2016-05-15 19:28:22 +02:00
|
|
|
- variant: test_debug
|
|
|
|
compiler: gcc
|
2016-05-25 06:31:52 +02:00
|
|
|
model: 32
|
2017-07-14 08:42:56 +02:00
|
|
|
crypto: openssl
|
2018-11-10 01:38:20 +01:00
|
|
|
bjam: 1
|
2015-08-20 00:38:46 +02:00
|
|
|
|
|
|
|
install:
|
2017-08-14 00:49:49 +02:00
|
|
|
- git submodule update --init --recursive
|
2015-08-20 00:38:46 +02:00
|
|
|
- set ROOT_DIRECTORY=%CD%
|
|
|
|
- cd %ROOT_DIRECTORY%
|
2018-11-10 01:38:20 +01:00
|
|
|
- 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="" )
|
2017-07-14 08:42:56 +02:00
|
|
|
- if %compiler% == msvc-14.0 if defined crypto if not exist openssl-1.0.1p-vs2015.7z (
|
2016-07-05 14:40:09 +02:00
|
|
|
echo downloading openssl-2015
|
2018-01-27 09:41:54 +01:00
|
|
|
& appveyor DownloadFile "https://www.npcglib.org/~stathis/downloads/openssl-1.0.1p-vs2015.7z"
|
2015-09-07 06:20:24 +02:00
|
|
|
)
|
2017-07-14 08:42:56 +02:00
|
|
|
- if %compiler% == msvc-14.0 if defined crypto (
|
2015-09-07 06:20:24 +02:00
|
|
|
echo extracting openssl-2015
|
|
|
|
& 7z x -oc:\ -aoa openssl-1.0.1p-vs2015.7z > nul
|
2017-10-07 15:26:46 +02:00
|
|
|
& rename c:\openssl-1.0.1p-vs2015 openssl
|
|
|
|
& copy c:\openssl\lib64\ssleay32MT.lib c:\openssl\lib64\ssleay32.lib
|
|
|
|
& copy c:\openssl\lib64\libeay32MT.lib c:\openssl\lib64\libeay32.lib
|
|
|
|
& copy c:\openssl\lib\ssleay32MT.lib c:\openssl\lib\ssleay32.lib
|
|
|
|
& copy c:\openssl\lib\libeay32MT.lib c:\openssl\lib\libeay32.lib
|
2015-08-23 21:32:28 +02:00
|
|
|
)
|
2015-08-20 00:38:46 +02:00
|
|
|
- cd %ROOT_DIRECTORY%
|
2017-02-11 21:41:06 +01:00
|
|
|
- set BOOST_ROOT=c:\Libraries\boost_1_63_0
|
2015-08-20 00:38:46 +02:00
|
|
|
- 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
|
2016-05-17 07:04:12 +02: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'
|
2015-08-20 00:38:46 +02:00
|
|
|
- type %HOMEDRIVE%%HOMEPATH%\user-config.jam
|
|
|
|
- cd %ROOT_DIRECTORY%
|
2016-05-25 06:31:52 +02:00
|
|
|
- set PATH=c:\msys64\mingw32\bin;%PATH%
|
2015-08-20 00:38:46 +02:00
|
|
|
- g++ --version
|
|
|
|
- python --version
|
|
|
|
- echo %ROOT_DIRECTORY%
|
2015-11-07 06:22:13 +01:00
|
|
|
- cd %BOOST_BUILD_PATH%\src\engine
|
|
|
|
- build.bat >nul
|
|
|
|
- cd %ROOT_DIRECTORY%
|
2015-10-12 06:04:29 +02:00
|
|
|
|
2015-08-20 00:38:46 +02:00
|
|
|
cache:
|
2015-08-23 21:32:28 +02:00
|
|
|
- openssl-1.0.1p-vs2015.7z
|
2015-10-12 06:04:29 +02:00
|
|
|
|
2015-08-20 00:38:46 +02:00
|
|
|
build_script:
|
2018-11-10 01:38:20 +01:00
|
|
|
|
2016-04-24 15:17:58 +02:00
|
|
|
# examples
|
|
|
|
- cd %ROOT_DIRECTORY%\examples
|
2018-11-10 01:38:20 +01:00
|
|
|
- if defined bjam (
|
|
|
|
b2.exe --hash openssl-version=pre1.1 warnings-as-errors=on -j2 %compiler% address-model=%model% picker-debugging=on invariant-checks=full variant=%variant% %linkflags% %include% link=shared crypto=%crypto%
|
|
|
|
)
|
2015-10-12 06:04:29 +02:00
|
|
|
|
2016-05-31 23:48:41 +02:00
|
|
|
# tools
|
|
|
|
- cd %ROOT_DIRECTORY%\tools
|
2018-11-10 01:38:20 +01:00
|
|
|
- if defined bjam (
|
|
|
|
b2.exe --hash openssl-version=pre1.1 warnings-as-errors=on -j2 %compiler% address-model=%model% picker-debugging=on invariant-checks=full variant=%variant% %linkflags% %include% link=shared crypto=%crypto%
|
|
|
|
)
|
2016-05-31 23:48:41 +02:00
|
|
|
|
2016-04-24 15:17:58 +02:00
|
|
|
# test
|
2015-08-23 17:33:41 +02:00
|
|
|
- cd %ROOT_DIRECTORY%\test
|
2018-11-10 01:38:20 +01:00
|
|
|
- if defined bjam (
|
|
|
|
b2.exe --hash openssl-version=pre1.1 warnings-as-errors=on -j2 %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
|
|
|
|
)
|
2016-04-24 15:17:58 +02:00
|
|
|
|
|
|
|
# python binding
|
|
|
|
- cd %ROOT_DIRECTORY%\bindings\python
|
2016-05-17 07:04:12 +02:00
|
|
|
# we use 64 bit python builds
|
2016-07-06 19:52:15 +02:00
|
|
|
- if defined python (
|
2018-01-04 21:35:31 +01:00
|
|
|
b2.exe --hash openssl-version=pre1.1 warnings-as-errors=on -j2 %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
|
2016-07-06 19:52:15 +02:00
|
|
|
)
|
2016-04-24 15:17:58 +02:00
|
|
|
|
|
|
|
# simulations
|
2016-07-06 19:52:15 +02:00
|
|
|
- cd %ROOT_DIRECTORY%\simulation
|
2015-08-23 17:33:41 +02:00
|
|
|
- if defined sim (
|
2017-12-28 21:41:46 +01:00
|
|
|
b2.exe --hash openssl-version=pre1.1 warnings-as-errors=on -j2 %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 testing.execute=off
|
2015-08-23 17:33:41 +02:00
|
|
|
)
|
|
|
|
|
2018-02-04 06:04:23 +01:00
|
|
|
# minimal support for cmake build
|
|
|
|
- cd %ROOT_DIRECTORY%
|
|
|
|
- mkdir build && cd build
|
|
|
|
- if defined cmake (
|
2018-04-12 14:38:05 +02:00
|
|
|
set "PATH=c:\Python27-x64;%PATH%" &&
|
2018-10-12 08:15:08 +02: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 14 2015 Win64" .. &&
|
2018-04-24 23:26:17 +02:00
|
|
|
cmake --build . --config Release
|
2018-02-04 06:04:23 +01:00
|
|
|
)
|
|
|
|
|
2016-04-24 15:17:58 +02:00
|
|
|
test_script:
|
|
|
|
- cd %ROOT_DIRECTORY%\test
|
2018-11-10 01:38:20 +01:00
|
|
|
- if defined bjam (
|
|
|
|
appveyor-retry b2.exe -l400 --hash openssl-version=pre1.1 warnings-as-errors=on -j2 %compiler% address-model=%model% picker-debugging=on invariant-checks=full variant=%variant% %linkflags% %include% link=shared crypto=%crypto% win-tests
|
|
|
|
)
|
2016-07-25 23:58:00 +02:00
|
|
|
|
2016-04-24 15:17:58 +02:00
|
|
|
- cd %ROOT_DIRECTORY%\bindings\python
|
2016-05-17 07:04:12 +02:00
|
|
|
# we use 64 bit python build
|
2017-08-14 00:49:49 +02:00
|
|
|
- if defined python (
|
|
|
|
copy dependencies\*.* .
|
2018-08-13 17:27:35 +02:00
|
|
|
& c:\Python35-x64\python.exe test.py -b
|
2017-08-14 00:49:49 +02:00
|
|
|
)
|
2016-07-06 19:52:15 +02:00
|
|
|
|
2018-11-10 01:38:20 +01:00
|
|
|
- if defined cmake (
|
|
|
|
appveyor-retry ctest
|
|
|
|
)
|
|
|
|
|
2016-07-06 19:52:15 +02:00
|
|
|
# simulation tests
|
2018-01-04 21:35:31 +01:00
|
|
|
# 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
|
2017-12-28 21:41:46 +01:00
|
|
|
# the IOCP backend in asio appears to have an issue where it hangs under
|
|
|
|
# certain unexpected terminations (through exceptions)
|
2016-04-24 15:17:58 +02:00
|
|
|
- cd %ROOT_DIRECTORY%\simulation
|
2016-07-06 19:52:15 +02:00
|
|
|
- if defined sim (
|
2017-12-28 21:41:46 +01:00
|
|
|
b2.exe --hash openssl-version=pre1.1 warnings-as-errors=on -j2 %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
|
2016-07-06 19:52:15 +02:00
|
|
|
)
|