2015-08-20 00:38:46 +02:00
|
|
|
version: 1.0.{build}
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
os: Visual Studio 2015
|
|
|
|
clone_depth: 1
|
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- variant: test_debug
|
2015-08-23 23:19:18 +02:00
|
|
|
compiler: msvc-14.0
|
2015-08-23 17:33:41 +02:00
|
|
|
sim: 1
|
2015-09-12 04:05:58 +02:00
|
|
|
linkflags: '"/LIBPATH:C:\\openssl-1.0.1p-vs2015\\lib"'
|
2015-08-23 23:19:18 +02:00
|
|
|
include: '"c:\\openssl-1.0.1p-vs2015\\include"'
|
|
|
|
- variant: test_debug
|
2015-08-29 22:38:45 +02:00
|
|
|
compiler: msvc-12.0
|
2015-08-23 23:19:18 +02:00
|
|
|
x64: 1
|
2015-09-12 04:05:58 +02:00
|
|
|
linkflags: '"/LIBPATH:C:\\openssl-1.0.1p-vs2013\\lib64"'
|
2015-08-29 22:38:45 +02:00
|
|
|
include: '"c:\\openssl-1.0.1p-vs2013\\include"'
|
2015-08-27 05:51:31 +02:00
|
|
|
- variant: test_debug
|
|
|
|
compiler: msvc-12.0
|
2015-09-12 04:05:58 +02:00
|
|
|
linkflags: '"/LIBPATH:C:\\openssl-1.0.1p-vs2013\\lib"'
|
2015-08-21 13:45:24 +02:00
|
|
|
include: '"c:\\openssl-1.0.1p-vs2013\\include"'
|
2015-08-20 00:38:46 +02:00
|
|
|
- variant: test_debug
|
|
|
|
compiler: msvc-10.0
|
2015-09-12 04:05:58 +02:00
|
|
|
linkflags: '"/LIBPATH:C:\\openssl-1.0.1p-vs2010\\lib"'
|
2015-08-21 13:45:24 +02:00
|
|
|
include: '"c:\\openssl-1.0.1p-vs2010\\include"'
|
2015-08-27 05:51:31 +02:00
|
|
|
- variant: test_barebones
|
|
|
|
compiler: msvc-12.0
|
2015-09-12 04:05:58 +02:00
|
|
|
linkflags: '"/LIBPATH:C:\\openssl-1.0.1p-vs2013\\lib"'
|
2015-08-21 13:45:24 +02:00
|
|
|
include: '"c:\\openssl-1.0.1p-vs2013\\include"'
|
2015-08-20 00:38:46 +02:00
|
|
|
- variant: test_release
|
|
|
|
compiler: msvc-12.0
|
2015-09-12 04:05:58 +02:00
|
|
|
linkflags: '"/LIBPATH:C:\\openssl-1.0.1p-vs2013\\lib"'
|
2015-08-21 13:45:24 +02:00
|
|
|
include: '"c:\\openssl-1.0.1p-vs2013\\include"'
|
2015-08-20 00:38:46 +02:00
|
|
|
|
|
|
|
# mingw and boost.random don't like each other. Comment this back in once there
|
|
|
|
# is support
|
|
|
|
|
|
|
|
# - variant: test_debug
|
|
|
|
# compiler: gcc
|
|
|
|
# linkflags: '"-LC:\\OpenSSL-Win32\\lib"'
|
|
|
|
|
|
|
|
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-12.0 (
|
|
|
|
if not exist openssl-1.0.1p-vs2013.7z (
|
2015-09-07 06:20:24 +02:00
|
|
|
echo downloading openssl-2013
|
|
|
|
& appveyor DownloadFile "http://www.npcglib.org/~stathis/downloads/openssl-1.0.1p-vs2013.7z"
|
2015-08-23 22:22:20 +02:00
|
|
|
)
|
2015-09-07 06:20:24 +02:00
|
|
|
)
|
|
|
|
- if %compiler% == msvc-12.0 (
|
|
|
|
echo extracting openssl-2013
|
|
|
|
& 7z x -oc:\ -aoa openssl-1.0.1p-vs2013.7z > nul
|
2015-08-23 22:22:20 +02:00
|
|
|
& copy c:\openssl-1.0.1p-vs2013\lib64\ssleay32MT.lib c:\openssl-1.0.1p-vs2013\lib64\ssleay32.lib
|
|
|
|
& copy c:\openssl-1.0.1p-vs2013\lib64\libeay32MT.lib c:\openssl-1.0.1p-vs2013\lib64\libeay32.lib
|
|
|
|
& copy c:\openssl-1.0.1p-vs2013\lib\ssleay32MT.lib c:\openssl-1.0.1p-vs2013\lib\ssleay32.lib
|
|
|
|
& copy c:\openssl-1.0.1p-vs2013\lib\libeay32MT.lib c:\openssl-1.0.1p-vs2013\lib\libeay32.lib
|
2015-08-23 21:32:28 +02:00
|
|
|
)
|
2015-08-23 22:22:20 +02:00
|
|
|
- if %compiler% == msvc-10.0 (
|
|
|
|
if not exist openssl-1.0.1p-vs2010.7z (
|
2015-09-07 06:20:24 +02:00
|
|
|
echo downloading openssl-2010
|
|
|
|
& appveyor DownloadFile "http://www.npcglib.org/~stathis/downloads/openssl-1.0.1p-vs2010.7z"
|
2015-08-23 22:22:20 +02:00
|
|
|
)
|
2015-09-07 06:20:24 +02:00
|
|
|
)
|
|
|
|
- if %compiler% == msvc-10.0 (
|
|
|
|
echo extracting openssl-2010
|
|
|
|
& 7z x -oc:\ -aoa openssl-1.0.1p-vs2010.7z > nul
|
|
|
|
& copy c:\openssl-1.0.1p-vs2010\lib64\ssleay32MT.lib c:\openssl-1.0.1p-vs2010\lib64\ssleay32.lib
|
|
|
|
& copy c:\openssl-1.0.1p-vs2010\lib64\libeay32MT.lib c:\openssl-1.0.1p-vs2010\lib64\libeay32.lib
|
|
|
|
& copy c:\openssl-1.0.1p-vs2010\lib\ssleay32MT.lib c:\openssl-1.0.1p-vs2010\lib\ssleay32.lib
|
|
|
|
& copy c:\openssl-1.0.1p-vs2010\lib\libeay32MT.lib c:\openssl-1.0.1p-vs2010\lib\libeay32.lib
|
2015-08-23 21:32:28 +02:00
|
|
|
)
|
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%
|
|
|
|
- set BOOST_ROOT=c:\Libraries\boost
|
|
|
|
- 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
|
|
|
|
- 'echo using msvc : 10.0 ; >%HOMEDRIVE%%HOMEPATH%\user-config.jam'
|
|
|
|
- 'echo using msvc : 12.0 ; >>%HOMEDRIVE%%HOMEPATH%\user-config.jam'
|
|
|
|
- 'echo using msvc : 14.0 ; >>%HOMEDRIVE%%HOMEPATH%\user-config.jam'
|
|
|
|
- echo using gcc ; >>%HOMEDRIVE%%HOMEPATH%\user-config.jam
|
|
|
|
- type %HOMEDRIVE%%HOMEPATH%\user-config.jam
|
|
|
|
- cd %ROOT_DIRECTORY%
|
|
|
|
- set PATH=%PATH%;c:\Mingw\bin
|
|
|
|
- g++ --version
|
|
|
|
- python --version
|
|
|
|
- echo %ROOT_DIRECTORY%
|
|
|
|
cache:
|
2015-08-23 21:32:28 +02:00
|
|
|
- openssl-1.0.1p-vs2010.7z
|
|
|
|
- openssl-1.0.1p-vs2013.7z
|
|
|
|
- openssl-1.0.1p-vs2015.7z
|
2015-08-20 00:38:46 +02:00
|
|
|
build_script:
|
2015-08-23 17:33:41 +02:00
|
|
|
- cd %ROOT_DIRECTORY%\test
|
|
|
|
- if defined x64 (
|
2015-09-12 04:05:58 +02:00
|
|
|
b2.exe --hash -j2 address-model=64 win-tests %compiler% variant=%variant% link=shared linkflags=%linkflags% include=%include%
|
2015-08-27 05:51:31 +02:00
|
|
|
) else (
|
2015-09-12 04:05:58 +02:00
|
|
|
b2.exe --hash -j2 address-model=32 win-tests %compiler% variant=%variant% link=shared linkflags=%linkflags% include=%include%
|
2015-08-27 05:51:31 +02:00
|
|
|
& cd %ROOT_DIRECTORY%\examples
|
2015-09-12 05:13:27 +02:00
|
|
|
& b2.exe --hash -j2 %compiler% variant=%variant% linkflags=%linkflags% include=%include% link=shared
|
2015-08-27 05:51:31 +02:00
|
|
|
& cd %ROOT_DIRECTORY%\bindings\python
|
2015-09-12 05:13:27 +02:00
|
|
|
& b2.exe --hash -j2 %compiler% stage_module variant=%variant% libtorrent-link=shared linkflags=%linkflags% include=%include%
|
2015-08-27 05:51:31 +02:00
|
|
|
& python test.py
|
2015-08-23 17:33:41 +02:00
|
|
|
)
|
|
|
|
- if defined sim (
|
|
|
|
cd %ROOT_DIRECTORY%\simulation
|
2015-08-27 05:51:31 +02:00
|
|
|
& b2.exe --hash -j2 link=shared crypto=built-in %compiler%
|
2015-08-23 17:33:41 +02:00
|
|
|
)
|
|
|
|
|