2015-08-20 00:38:46 +02:00
|
|
|
version: 1.0.{build}
|
|
|
|
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
|
2016-05-17 07:04:12 +02:00
|
|
|
python: 1
|
2016-04-24 15:17:58 +02:00
|
|
|
linkflags: '"/LIBPATH:C:\\openssl-1.0.1p-vs2015\\lib64"'
|
|
|
|
include: '"c:\\openssl-1.0.1p-vs2015\\include"'
|
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
|
2016-05-13 03:24:45 +02:00
|
|
|
linkflags: '"/LIBPATH:C:\\openssl-1.0.1p-vs2015\\lib"'
|
|
|
|
include: '"c:\\openssl-1.0.1p-vs2015\\include"'
|
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-05-17 07:04:12 +02:00
|
|
|
python: 1
|
|
|
|
linkflags: '"/LIBPATH:C:\\openssl-1.0.1p-vs2015\\lib64"'
|
2016-05-13 03:24:45 +02:00
|
|
|
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
|
|
|
|
linkflags: '"-LC:\\OpenSSL-Win32\\lib"'
|
|
|
|
include: '"c:\\OpenSSL-Win32\\include"'
|
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%
|
2015-08-23 22:22:20 +02:00
|
|
|
- if %compiler% == msvc-14.0 (
|
|
|
|
if not exist openssl-1.0.1p-vs2015.7z (
|
2015-09-07 06:20:24 +02:00
|
|
|
echo downloading openssl-2015
|
|
|
|
& appveyor DownloadFile "http://www.npcglib.org/~stathis/downloads/openssl-1.0.1p-vs2015.7z"
|
2015-08-23 22:22:20 +02:00
|
|
|
)
|
2015-09-07 06:20:24 +02:00
|
|
|
)
|
|
|
|
- if %compiler% == msvc-14.0 (
|
|
|
|
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
|
|
|
)
|
2015-08-20 00:38:46 +02:00
|
|
|
- cd %ROOT_DIRECTORY%
|
2016-04-24 15:17:58 +02:00
|
|
|
- set BOOST_ROOT=c:\Libraries\boost_1_59_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
|
2016-05-19 06:49:12 +02:00
|
|
|
- b2.exe --hash warnings-as-errors=on -j2 %compiler% address-model=%model% variant=%variant% picker-debugging=on linkflags=%linkflags% include=%include% link=shared
|
2015-10-12 06:04:29 +02:00
|
|
|
|
2016-05-31 23:48:41 +02:00
|
|
|
# tools
|
|
|
|
- cd %ROOT_DIRECTORY%\tools
|
|
|
|
- b2.exe --hash warnings-as-errors=on -j2 %compiler% address-model=%model% variant=%variant% picker-debugging=on linkflags=%linkflags% include=%include% link=shared
|
|
|
|
|
2016-04-24 15:17:58 +02:00
|
|
|
# test
|
2015-08-23 17:33:41 +02:00
|
|
|
- cd %ROOT_DIRECTORY%\test
|
2016-05-19 06:49:12 +02:00
|
|
|
- b2.exe --hash -j2 warnings-as-errors=on address-model=%model% win-tests %compiler% variant=%variant% picker-debugging=on link=shared linkflags=%linkflags% include=%include% 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-05-19 06:49:12 +02:00
|
|
|
- if defined python ( b2.exe --hash -j2 %compiler% address-model=%model% stage_module install-dependencies=on variant=%variant% picker-debugging=on libtorrent-link=shared linkflags=%linkflags% include=%include% )
|
2016-04-24 15:17:58 +02:00
|
|
|
|
|
|
|
# simulations
|
2015-08-23 17:33:41 +02:00
|
|
|
- if defined sim (
|
|
|
|
cd %ROOT_DIRECTORY%\simulation
|
2016-04-24 15:17:58 +02:00
|
|
|
& b2.exe --hash -j2 link=shared crypto=built-in %compiler% address-model=%model% 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
|
2016-05-15 19:28:22 +02:00
|
|
|
# mingw tests crash currently. needs resolving
|
2016-05-19 06:49:12 +02:00
|
|
|
- if not %compiler% == gcc ( b2.exe --hash -j2 address-model=%model% win-tests %compiler% variant=%variant% picker-debugging=on link=shared linkflags=%linkflags% include=%include% )
|
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-04-24 15:17:58 +02:00
|
|
|
- cd %ROOT_DIRECTORY%\simulation
|
|
|
|
- if defined sim ( b2.exe --hash -j2 link=shared crypto=built-in %compiler% address-model=%model% )
|
|
|
|
|