rDSN/appveyor.yml

49 строки
1.3 KiB
YAML
Исходник Обычный вид История

version: 1.0.{build}
environment:
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
matrix:
- DSN_CMAKE_BUILD_TYPE: RelWithDebInfo
- DSN_CMAKE_BUILD_TYPE: Debug
install:
- ps: >-
git submodule update --init
if (!(Test-Path boost.7z)) {
echo "Downloading boost binaries from ${env:DSN_BOOST_PKG} ..."
2015-12-03 08:54:30 +03:00
appveyor DownloadFile "${env:DSN_BOOST_PKG}" -FileName boost.7z -Timeout 1200000
}
2015-12-03 08:44:42 +03:00
- cmd: >-
echo "Extracting boost libs to %APPVEYOR_BUILD_FOLDER% ..."
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
cache:
- boost.7z
before_build:
2015-12-03 08:44:42 +03:00
- cmd: >-
mkdir build
cd .\build
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%"
build_script:
- ps: >-
cmake --build . --target check -- /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
if (-not $?) { throw "build failed" }
test_script: