prettier format appveyor.yml

This commit is contained in:
Calum Lind 2018-12-01 11:41:13 +00:00 committed by Arvid Norberg
parent 3e582100d0
commit 5d711f4929
1 changed files with 109 additions and 110 deletions

View File

@ -1,47 +1,47 @@
version: "{build}" version: "{build}"
branches: branches:
only: only:
- master - master
- RC_1_1 - RC_1_1
- RC_1_0 - RC_1_0
os: Visual Studio 2015 os: Visual Studio 2015
clone_depth: 1 clone_depth: 1
environment: environment:
matrix: matrix:
- cmake: 1 - cmake: 1
- variant: test_debug - variant: test_debug
compiler: msvc-14.0 compiler: msvc-14.0
model: 64 model: 64
sim: 1 sim: 1
- variant: test_debug - variant: test_debug
compiler: msvc-14.0 compiler: msvc-14.0
model: 32 model: 32
bjam: 1 bjam: 1
- variant: test_release - variant: test_release
compiler: msvc-14.0 compiler: msvc-14.0
model: 64 model: 64
python: 1 python: 1
crypto: openssl crypto: openssl
bjam: 1 bjam: 1
- variant: test_debug - variant: test_debug
compiler: gcc compiler: gcc
model: 32 model: 32
crypto: openssl crypto: openssl
bjam: 1 bjam: 1
install: install:
- git submodule update --init --recursive - git submodule update --init --recursive
- set ROOT_DIRECTORY=%CD% - set ROOT_DIRECTORY=%CD%
- cd %ROOT_DIRECTORY% - cd %ROOT_DIRECTORY%
- if not defined compiler ( set compiler="" ) - if not defined compiler ( set compiler="" )
- if not defined crypto ( set crypto=built-in ) - if not defined crypto ( set crypto=built-in )
- if not defined linkflags ( set linkflags="" ) - if not defined linkflags ( set linkflags="" )
- if not defined include ( set include="" ) - if not defined include ( set include="" )
- if %compiler% == msvc-14.0 if defined crypto if not exist openssl-1.0.1p-vs2015.7z ( - if %compiler% == msvc-14.0 if defined crypto if not exist openssl-1.0.1p-vs2015.7z (
echo downloading openssl-2015 echo downloading openssl-2015
& appveyor DownloadFile "https://www.npcglib.org/~stathis/downloads/openssl-1.0.1p-vs2015.7z" & appveyor DownloadFile "https://www.npcglib.org/~stathis/downloads/openssl-1.0.1p-vs2015.7z"
) )
- if %compiler% == msvc-14.0 if defined crypto ( - if %compiler% == msvc-14.0 if defined crypto (
echo extracting openssl-2015 echo extracting openssl-2015
& 7z x -oc:\ -aoa openssl-1.0.1p-vs2015.7z > nul & 7z x -oc:\ -aoa openssl-1.0.1p-vs2015.7z > nul
& rename c:\openssl-1.0.1p-vs2015 openssl & rename c:\openssl-1.0.1p-vs2015 openssl
@ -49,94 +49,93 @@ install:
& copy c:\openssl\lib64\libeay32MT.lib c:\openssl\lib64\libeay32.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\ssleay32MT.lib c:\openssl\lib\ssleay32.lib
& copy c:\openssl\lib\libeay32MT.lib c:\openssl\lib\libeay32.lib & copy c:\openssl\lib\libeay32MT.lib c:\openssl\lib\libeay32.lib
) )
- cd %ROOT_DIRECTORY% - cd %ROOT_DIRECTORY%
- set BOOST_ROOT=c:\Libraries\boost_1_63_0 - set BOOST_ROOT=c:\Libraries\boost_1_63_0
- set BOOST_BUILD_PATH=%BOOST_ROOT%\tools\build - set BOOST_BUILD_PATH=%BOOST_ROOT%\tools\build
- echo %BOOST_ROOT% - echo %BOOST_ROOT%
- echo %BOOST_BUILD_PATH% - echo %BOOST_BUILD_PATH%
- set PATH=%PATH%;%BOOST_BUILD_PATH%\src\engine\bin.ntx86 - set PATH=%PATH%;%BOOST_BUILD_PATH%\src\engine\bin.ntx86
- 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' - 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 - type %HOMEDRIVE%%HOMEPATH%\user-config.jam
- cd %ROOT_DIRECTORY% - cd %ROOT_DIRECTORY%
- set PATH=c:\msys64\mingw32\bin;%PATH% - set PATH=c:\msys64\mingw32\bin;%PATH%
- g++ --version - g++ --version
- python --version - python --version
- echo %ROOT_DIRECTORY% - echo %ROOT_DIRECTORY%
- cd %BOOST_BUILD_PATH%\src\engine - cd %BOOST_BUILD_PATH%\src\engine
- build.bat >nul - build.bat >nul
- cd %ROOT_DIRECTORY% - cd %ROOT_DIRECTORY%
cache: cache:
- openssl-1.0.1p-vs2015.7z - openssl-1.0.1p-vs2015.7z
build_script: build_script:
# examples
- cd %ROOT_DIRECTORY%\examples
- if defined bjam (
b2.exe --hash openssl-version=pre1.1 warnings=all warnings-as-errors=on -j2 %compiler% address-model=%model% picker-debugging=on invariant-checks=full variant=%variant% %linkflags% %include% link=shared crypto=%crypto%
)
# examples # tools
- cd %ROOT_DIRECTORY%\examples - cd %ROOT_DIRECTORY%\tools
- if defined bjam ( - if defined bjam (
b2.exe --hash openssl-version=pre1.1 warnings=all warnings-as-errors=on -j2 %compiler% address-model=%model% picker-debugging=on invariant-checks=full variant=%variant% %linkflags% %include% link=shared crypto=%crypto% b2.exe --hash openssl-version=pre1.1 warnings=all warnings-as-errors=on -j2 %compiler% address-model=%model% picker-debugging=on invariant-checks=full variant=%variant% %linkflags% %include% link=shared crypto=%crypto%
) )
# tools # test
- cd %ROOT_DIRECTORY%\tools - cd %ROOT_DIRECTORY%\test
- if defined bjam ( - if defined bjam (
b2.exe --hash openssl-version=pre1.1 warnings=all warnings-as-errors=on -j2 %compiler% address-model=%model% picker-debugging=on invariant-checks=full variant=%variant% %linkflags% %include% link=shared crypto=%crypto% b2.exe --hash openssl-version=pre1.1 warnings=all 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
) )
# test # python binding
- cd %ROOT_DIRECTORY%\test - cd %ROOT_DIRECTORY%\bindings\python
- if defined bjam ( # we use 64 bit python builds
b2.exe --hash openssl-version=pre1.1 warnings=all 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 - if defined python (
) b2.exe --hash openssl-version=pre1.1 warnings=all 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
)
# python binding # simulations
- cd %ROOT_DIRECTORY%\bindings\python - cd %ROOT_DIRECTORY%\simulation
# we use 64 bit python builds - if defined sim (
- if defined python ( b2.exe --hash openssl-version=pre1.1 warnings=all 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
b2.exe --hash openssl-version=pre1.1 warnings=all 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 )
)
# simulations # minimal support for cmake build
- cd %ROOT_DIRECTORY%\simulation - cd %ROOT_DIRECTORY%
- if defined sim ( - mkdir build && cd build
b2.exe --hash openssl-version=pre1.1 warnings=all 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 - if defined cmake (
) set "PATH=c:\Python27-x64;%PATH%" &&
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" .. &&
# minimal support for cmake build cmake --build . --config Release -- -verbosity:quiet
- cd %ROOT_DIRECTORY% )
- mkdir build && cd build
- if defined cmake (
set "PATH=c:\Python27-x64;%PATH%" &&
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" .. &&
cmake --build . --config Release -- -verbosity:quiet
)
test_script: test_script:
- cd %ROOT_DIRECTORY%\test - cd %ROOT_DIRECTORY%\test
- if defined bjam ( - if defined bjam (
appveyor-retry b2.exe -l400 --hash openssl-version=pre1.1 warnings=all 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 appveyor-retry b2.exe -l400 --hash openssl-version=pre1.1 warnings=all 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
) )
- cd %ROOT_DIRECTORY%\bindings\python - cd %ROOT_DIRECTORY%\bindings\python
# we use 64 bit python build # we use 64 bit python build
- if defined python ( - if defined python (
copy dependencies\*.* . copy dependencies\*.* .
& c:\Python35-x64\python.exe test.py -b & c:\Python35-x64\python.exe test.py -b
) )
- if defined cmake ( - if defined cmake (
appveyor-retry ctest appveyor-retry ctest
) )
# simulation tests # simulation tests
# debug iterators are turned off here because msvc has issues with noexcept # debug iterators are turned off here because msvc has issues with noexcept
# specifiers when debug iterators are enabled. Specifically, constructors that # specifiers when debug iterators are enabled. Specifically, constructors that
# allocate memory are still marked as noexcept. That results in program # allocate memory are still marked as noexcept. That results in program
# termination # termination
# the IOCP backend in asio appears to have an issue where it hangs under # the IOCP backend in asio appears to have an issue where it hangs under
# certain unexpected terminations (through exceptions) # certain unexpected terminations (through exceptions)
- cd %ROOT_DIRECTORY%\simulation - cd %ROOT_DIRECTORY%\simulation
- if defined sim ( - if defined sim (
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 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
) )