2015-09-21 11:38:36 +00:00
|
|
|
@ECHO OFF
|
|
|
|
SETLOCAL
|
|
|
|
SET EL=0
|
|
|
|
|
|
|
|
ECHO =========== %~f0 ===========
|
|
|
|
|
2015-09-21 16:45:38 +00:00
|
|
|
SET APPVEYOR_REPO_COMMIT_MESSAGE=this is a [build appveyor] test
|
|
|
|
SET APPVEYOR=true
|
2015-09-30 12:28:01 +00:00
|
|
|
::comment this to get complete AppVeyor behaviour
|
|
|
|
SET LOCAL_BUILD_DONT_SKIP_TESTS=true
|
2015-09-21 12:04:28 +00:00
|
|
|
SET FASTBUILD=1
|
2015-12-15 19:51:31 +00:00
|
|
|
|
|
|
|
FOR /F "tokens=1 usebackq" %%i in (`powershell .\scripts\parse-appveyor-yml.ps1`) 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
|
|
|
|
|
|
|
|
|
|
|
|
:: OVERRIDE PARAMETERS >>>>>>>>
|
|
|
|
:NEXT-ARG
|
|
|
|
|
|
|
|
IF '%1'=='' GOTO ARGS-DONE
|
|
|
|
ECHO setting %1
|
|
|
|
SET %1
|
|
|
|
SHIFT
|
|
|
|
GOTO NEXT-ARG
|
|
|
|
|
|
|
|
:ARGS-DONE
|
|
|
|
::<<<<< OVERRIDE PARAMETERS
|
|
|
|
|
|
|
|
|
2015-09-21 16:45:38 +00:00
|
|
|
SET configuration=Release
|
2015-09-21 11:38:36 +00:00
|
|
|
SET msvs_toolset=14
|
|
|
|
SET platform=x64
|
|
|
|
SET APPVEYOR_BUILD_FOLDER=%CD%
|
2015-12-15 19:51:31 +00:00
|
|
|
|
|
|
|
ECHO pulling test data
|
|
|
|
CALL git submodule update --init
|
|
|
|
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
|
|
|
ECHO pulling test data, DONE
|
|
|
|
|
|
|
|
SET TIME_START_LOCAL_BUILD=%TIME%
|
2015-09-21 11:38:36 +00:00
|
|
|
CALL scripts\build-appveyor.bat
|
|
|
|
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
|
|
|
|
|
|
|
GOTO DONE
|
|
|
|
|
|
|
|
:ERROR
|
|
|
|
ECHO =========== ERROR %~f0 ===========
|
|
|
|
ECHO ERRORLEVEL^: %ERRORLEVEL%
|
|
|
|
SET EL=%ERRORLEVEL%
|
|
|
|
|
|
|
|
:DONE
|
|
|
|
ECHO =========== DONE %~f0 ===========
|
2015-12-15 19:51:31 +00:00
|
|
|
ECHO build started^: %TIME_START_LOCAL_BUILD%
|
|
|
|
ECHO build finished^: %TIME%
|
2015-09-21 11:38:36 +00:00
|
|
|
|
|
|
|
EXIT /b %EL%
|