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:
|
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
|
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
|
2016-07-05 14:40:09 +02:00
|
|
|
linkflags: 'linkflags="/LIBPATH:C:\\openssl-1.0.1p-vs2015\\lib64"'
|
|
|
|
include: 'include="c:\\openssl-1.0.1p-vs2015\\include"'
|
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
|
2015-08-20 00:38:46 +02:00
|
|
|
|
|
|
|
install:
|
2015-09-07 06:20:24 +02:00
|
|
|
- if defined sim ( git submodule update --init --recursive )
|
2015-08-20 00:38:46 +02:00
|
|
|
- set ROOT_DIRECTORY=%CD%
|
|
|
|
- cd %ROOT_DIRECTORY%
|
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
|
|
|
|
& appveyor DownloadFile "http://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
|
|
|
|
& copy c:\openssl-1.0.1p-vs2015\lib64\ssleay32MT.lib c:\openssl-1.0.1p-vs2015\lib64\ssleay32.lib
|
|
|
|
& copy c:\openssl-1.0.1p-vs2015\lib64\libeay32MT.lib c:\openssl-1.0.1p-vs2015\lib64\libeay32.lib
|
|
|
|
& copy c:\openssl-1.0.1p-vs2015\lib\ssleay32MT.lib c:\openssl-1.0.1p-vs2015\lib\ssleay32.lib
|
|
|
|
& copy c:\openssl-1.0.1p-vs2015\lib\libeay32MT.lib c:\openssl-1.0.1p-vs2015\lib\libeay32.lib
|
2015-08-23 21:32:28 +02:00
|
|
|
)
|
2016-07-05 14:40:09 +02:00
|
|
|
- if not defined crypto ( set crypto=built-in )
|
|
|
|
- if not defined linkflags ( set linkflags="" )
|
|
|
|
- if not defined include ( set include="" )
|
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:
|
2016-04-24 15:17:58 +02:00
|
|
|
# examples
|
|
|
|
- cd %ROOT_DIRECTORY%\examples
|
2017-07-14 08:42:56 +02:00
|
|
|
- b2.exe --hash openssl-version=pre1.1 warnings-as-errors=on -j2 %compiler% address-model=%model% debug-iterators=on picker-debugging=on invariant-checks=full variant=%variant% %linkflags% %include% link=shared crypto=%crypto% crypto=%crypto%
|
2015-10-12 06:04:29 +02:00
|
|
|
|
2016-05-31 23:48:41 +02:00
|
|
|
# tools
|
|
|
|
- cd %ROOT_DIRECTORY%\tools
|
2017-07-14 08:42:56 +02:00
|
|
|
- b2.exe --hash openssl-version=pre1.1 warnings-as-errors=on -j2 %compiler% address-model=%model% debug-iterators=on picker-debugging=on invariant-checks=full variant=%variant% %linkflags% %include% link=shared crypto=%crypto% 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
|
2017-07-14 08:42:56 +02:00
|
|
|
- b2.exe --hash openssl-version=pre1.1 warnings-as-errors=on -j2 %compiler% address-model=%model% debug-iterators=on picker-debugging=on invariant-checks=full variant=%variant% %linkflags% %include% link=shared crypto=%crypto% 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 (
|
2017-07-14 08:42:56 +02:00
|
|
|
b2.exe --hash openssl-version=pre1.1 warnings-as-errors=on -j2 %compiler% address-model=%model% debug-iterators=on picker-debugging=on invariant-checks=full variant=%variant% %linkflags% %include% link=shared crypto=%crypto% crypto=%crypto% libtorrent-link=shared stage_module install-dependencies=on
|
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-07-26 23:56:17 +02:00
|
|
|
b2.exe --hash openssl-version=pre1.1 warnings-as-errors=on -j2 %compiler% address-model=%model% debug-iterators=on picker-debugging=on invariant-checks=full variant=%variant% deprecated-functions=off %linkflags% %include% link=shared crypto=built-in testing.execute=off
|
2015-08-23 17:33:41 +02:00
|
|
|
)
|
|
|
|
|
2016-04-24 15:17:58 +02:00
|
|
|
test_script:
|
|
|
|
- cd %ROOT_DIRECTORY%\test
|
2017-07-14 08:42:56 +02:00
|
|
|
- appveyor-retry b2.exe -l400 --hash openssl-version=pre1.1 warnings-as-errors=on -j2 %compiler% address-model=%model% debug-iterators=on picker-debugging=on invariant-checks=full variant=%variant% %linkflags% %include% link=shared crypto=%crypto% 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
|
|
|
|
- if defined python ( c:\Python35-x64\python.exe test.py )
|
2016-07-06 19:52:15 +02:00
|
|
|
|
|
|
|
# simulation tests
|
2016-04-24 15:17:58 +02:00
|
|
|
- cd %ROOT_DIRECTORY%\simulation
|
2016-07-06 19:52:15 +02:00
|
|
|
- if defined sim (
|
2017-07-14 07:51:05 +02:00
|
|
|
b2.exe --hash openssl-version=pre1.1 warnings-as-errors=on -j2 %compiler% address-model=%model% debug-iterators=on picker-debugging=on invariant-checks=full variant=%variant% %linkflags% %include% link=shared crypto=built-in
|
2016-07-06 19:52:15 +02:00
|
|
|
)
|