2015-12-03 08:01:45 +03:00
|
|
|
version: 1.0.{build}
|
|
|
|
|
2015-12-03 07:50:39 +03:00
|
|
|
environment:
|
2015-12-03 08:01:45 +03:00
|
|
|
global:
|
|
|
|
DSN_VS: "Visual Studio 12 2013 Win64"
|
2015-12-03 08:09:45 +03:00
|
|
|
DSN_BOOST: boost_1_57_0
|
2015-12-03 08:44:42 +03:00
|
|
|
DSN_BOOST_LIB: lib64-msvc-12.0
|
2015-12-03 08:58:59 +03:00
|
|
|
DSN_BOOST_PKG: https://github.com/imzhenyu/packages/blob/master/windows/boost_1_57_0.7z?raw=true
|
2015-12-03 08:01:45 +03:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
- DSN_CMAKE_BUILD_TYPE: RelWithDebInfo
|
|
|
|
- DSN_CMAKE_BUILD_TYPE: Debug
|
2015-12-03 07:50:39 +03:00
|
|
|
|
|
|
|
install:
|
2015-12-03 08:01:45 +03:00
|
|
|
- ps: >-
|
|
|
|
git submodule update --init
|
2015-12-03 07:50:39 +03:00
|
|
|
|
2015-12-03 08:01:45 +03:00
|
|
|
if (!(Test-Path boost.7z)) {
|
2015-12-03 07:50:39 +03:00
|
|
|
|
2015-12-03 08:01:45 +03:00
|
|
|
echo "Downloading boost binaries from ${env:DSN_BOOST_PKG} ..."
|
2015-12-03 07:50:39 +03:00
|
|
|
|
2015-12-03 08:54:30 +03:00
|
|
|
appveyor DownloadFile "${env:DSN_BOOST_PKG}" -FileName boost.7z -Timeout 1200000
|
2015-12-03 08:01:45 +03:00
|
|
|
}
|
2015-12-03 07:50:39 +03:00
|
|
|
|
2015-12-03 08:44:42 +03:00
|
|
|
- cmd: >-
|
|
|
|
echo "Extracting boost libs to %APPVEYOR_BUILD_FOLDER% ..."
|
2015-12-03 07:50:39 +03:00
|
|
|
|
2015-12-03 08:44:42 +03:00
|
|
|
7z x boost.7z -y -o"%APPVEYOR_BUILD_FOLDER%" > null
|
2015-12-03 08:17:02 +03:00
|
|
|
|
2015-12-03 07:50:39 +03:00
|
|
|
cache:
|
2015-12-03 08:01:45 +03:00
|
|
|
- boost.7z
|
2015-12-03 07:50:39 +03:00
|
|
|
|
|
|
|
before_build:
|
2015-12-03 08:44:42 +03:00
|
|
|
- cmd: >-
|
2015-12-03 08:01:45 +03:00
|
|
|
mkdir build
|
2015-12-03 07:50:39 +03:00
|
|
|
|
2015-12-03 08:01:45 +03:00
|
|
|
cd .\build
|
2015-12-03 07:50:39 +03:00
|
|
|
|
2015-12-03 09:00:59 +03:00
|
|
|
cmake .. -DCMAKE_BUILD_TYPE="%DSN_CMAKE_BUILD_TYPE%" -DBOOST_INCLUDEDIR="%APPVEYOR_BUILD_FOLDER%\%DSN_BOOST%" -DBOOST_LIBRARYDIR="%APPVEYOR_BUILD_FOLDER%\%DSN_BOOST%\%DSN_BOOST_LIB%" -G "%DSN_VS%"
|
2015-12-03 07:50:39 +03:00
|
|
|
|
|
|
|
build_script:
|
2015-12-03 08:01:45 +03:00
|
|
|
- ps: >-
|
|
|
|
cmake --build . --target check -- /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
2015-12-03 07:50:39 +03:00
|
|
|
|
2015-12-03 08:01:45 +03:00
|
|
|
if (-not $?) { throw "build failed" }
|
2015-12-03 07:50:39 +03:00
|
|
|
|
|
|
|
test_script:
|
|
|
|
|