зеркало из https://github.com/microsoft/rDSN.git
use spaces instead of tabs for appveyor.yml
This commit is contained in:
Родитель
60503621b4
Коммит
7d5bd03026
64
appveyor.yml
64
appveyor.yml
|
@ -1,50 +1,56 @@
|
|||
version: 1.0.{build}
|
||||
|
||||
branches:
|
||||
only:
|
||||
-master
|
||||
|
||||
os: Windows Server 2012
|
||||
|
||||
environment:
|
||||
matrix:
|
||||
- DSN_VS: "Visual Studio 12 2013 Win64"
|
||||
DSN_BOOST_INC: "${env:APPVEYOR_BUILD_FOLDER}/boost_1_57_0"
|
||||
DSN_BOOST_LIB: "${env:APPVEYOR_BUILD_FOLDER}/boost_1_57_0/lib64-msvc-12.0"
|
||||
DSN_BOOST_PKG: "https://github.com/imzhenyu/packages/blob/master/windows/boost_1_57_0.7z"
|
||||
DSN_CMAKE_BUILD_TYPE: "RelWithDebInfo"
|
||||
- DSN_VS: "Visual Studio 12 2013 Win64"
|
||||
DSN_BOOST_INC: "${env:APPVEYOR_BUILD_FOLDER}/boost_1_57_0"
|
||||
DSN_BOOST_LIB: "${env:APPVEYOR_BUILD_FOLDER}/boost_1_57_0/lib64-msvc-12.0"
|
||||
DSN_BOOST_PKG: "https://github.com/imzhenyu/packages/blob/master/windows/boost_1_57_0.7z"
|
||||
DSN_CMAKE_BUILD_TYPE: "Debug"
|
||||
global:
|
||||
DSN_VS: "Visual Studio 12 2013 Win64"
|
||||
DSN_BOOST_INC: "${env:APPVEYOR_BUILD_FOLDER}/boost_1_57_0"
|
||||
DSN_BOOST_LIB: "${env:APPVEYOR_BUILD_FOLDER}/boost_1_57_0/lib64-msvc-12.0"
|
||||
DSN_BOOST_PKG: "https://github.com/imzhenyu/packages/blob/master/windows/boost_1_57_0.7z"
|
||||
|
||||
matrix:
|
||||
- DSN_CMAKE_BUILD_TYPE: RelWithDebInfo
|
||||
- DSN_CMAKE_BUILD_TYPE: Debug
|
||||
|
||||
install:
|
||||
- ps: >-
|
||||
git submodule update --init
|
||||
- ps: >-
|
||||
git submodule update --init
|
||||
|
||||
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine")
|
||||
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine")
|
||||
|
||||
if (!(Test-Path boost.7z)) {
|
||||
if (!(Test-Path boost.7z)) {
|
||||
|
||||
echo "Downloading boost binaries from ${env:DSN_BOOST_PKG} ..."
|
||||
echo "Downloading boost binaries from ${env:DSN_BOOST_PKG} ..."
|
||||
|
||||
Start-FileDownload "${env:DSN_BOOST_PKG} -FileName boost.7z -Timeout 1200000
|
||||
}
|
||||
Start-FileDownload "${env:DSN_BOOST_PKG} -FileName boost.7z -Timeout 1200000
|
||||
}
|
||||
|
||||
echo "Extracting boost libs ..."
|
||||
echo "Extracting boost libs ..."
|
||||
|
||||
7z x boost.7z -y -o"${env:APPVEYOR_BUILD_FOLDER}" > $null
|
||||
7z x boost.7z -y -o"${env:APPVEYOR_BUILD_FOLDER}" > $null
|
||||
|
||||
cache:
|
||||
- boost.7z
|
||||
- boost.exe
|
||||
- boost.7z
|
||||
- boost.exe
|
||||
|
||||
before_build:
|
||||
- ps: >-
|
||||
mkdir build
|
||||
- ps: >-
|
||||
mkdir build
|
||||
|
||||
cd .\build
|
||||
cd .\build
|
||||
|
||||
cmake .. -DBOOST_INCLUDEDIR="${env:DSN_BOOST_INC}" -DBOOST_LIBRARYDIR="${env:DSN_BOOST_LIB}" -G $env:DSN_VS
|
||||
cmake .. -DCMAKE_BUILD_TYPE="${env:DSN_CMAKE_BUILD_TYPE}" -DBOOST_INCLUDEDIR="${env:DSN_BOOST_INC}" -DBOOST_LIBRARYDIR="${env:DSN_BOOST_LIB}" -G $env:DSN_VS
|
||||
|
||||
build_script:
|
||||
- ps: >-
|
||||
cmake --build . --target check -- /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
||||
- ps: >-
|
||||
cmake --build . --target check -- /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
||||
|
||||
if (-not $?) { throw "build failed" }
|
||||
if (-not $?) { throw "build failed" }
|
||||
|
||||
test_script:
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче