[skip ci] [wip] new win build scripts

This commit is contained in:
bergwerkgis 2016-03-16 10:24:16 +00:00
parent d5eb6c8ddf
commit d9a7d634a7
3 changed files with 11 additions and 5 deletions

View file

@ -1,6 +1,7 @@
environment:
msvs_toolset: 14
BOOST_VERSION: 59
ICU_VERSION: 56
FASTBUILD: 1
matrix:
- platform: x64

View file

@ -10,10 +10,14 @@ SET APPVEYOR=true
SET LOCAL_BUILD_DONT_SKIP_TESTS=true
SET FASTBUILD=1
FOR /F "tokens=1 usebackq" %%i in (`powershell .\scripts\parse-appveyor-yml.ps1`) DO SET BOOST_VERSION=%%i
FOR /F "tokens=1 usebackq" %%i in (`powershell .\scripts\parse-appveyor-yml.ps1 "BOOST_VERSION: "`) DO SET BOOST_VERSION=%%i
ECHO BOOST_VERSION found in appveyor.yml^: %BOOST_VERSION%
IF "%BOOST_VERSION%"=="0" ECHO BOOST_VERSION not valid && SET ERRORLEVEL=1 && GOTO ERROR
FOR /F "tokens=1 usebackq" %%i in (`powershell .\scripts\parse-appveyor-yml.ps1 "ICU_VERSION: "`) DO SET ICU_VERSION=%%i
ECHO ICU_VERSION found in appveyor.yml^: %ICU_VERSION%
IF "%ICU_VERSION%"=="0" ECHO ICU_VERSION not valid && SET ERRORLEVEL=1 && GOTO ERROR
:: OVERRIDE PARAMETERS >>>>>>>>
:NEXT-ARG

View file

@ -1,7 +1,8 @@
$ErrorActionPreference = 'Stop'
$boost_version='0'
$pattern=$args[0]
$version='0'
Get-Content .\appveyor.yml |
foreach {
if ($_ -match "BOOST_VERSION: "){ $boost_version = $_.split()[-1] }
if ($_ -match $pattern){ $version = $_.split()[-1] }
}
Write-Host $boost_version
Write-Host $version