Files
boost-ci/ci/azure-pipelines/install.bat
Mateusz Łoskot 0bf944aba9 Add configuration for Azure Pipelines (AzP)
First stab at the common AzP configuration following the convention
structure, build jobs and build steps as established by the existing
configuration for Travis CI and AppVeyor.
2019-05-09 16:07:28 -04:00

38 lines
1.5 KiB
Batchfile

@ECHO ON
REM Executes the install phase for Azure Pipelines (AzP)
IF NOT DEFINED SELF (
SET SELF=%BUILD_REPOSITORY_NAME:-=_%
FOR /f "tokens=2 delims=/" %%a in ("%SELF%") DO SET SELF=%%a
)
cd .. || EXIT /B
REM BOOST_BRANCH is the superproject branch we check out and build against
REM except of course the repo being built - that is always what appveyor is handed
if "%BOOST_BRANCH%" == "" (
SET BOOST_BRANCH=develop
if "%BUILD_SOURCEBRANCHNAME%" == "master" set BOOST_BRANCH=master
)
git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root || EXIT /B
cd boost-root || EXIT /B
git submodule update -q --init libs/headers || EXIT /B
git submodule update -q --init tools/boost_install || EXIT /B
git submodule update -q --init tools/boostdep || EXIT /B
git submodule update -q --init tools/build || EXIT /B
xcopy /s /e /q /I %BUILD_SOURCESDIRECTORY% libs\%SELF% || EXIT /B
cd ..
move boost-root %BUILD_SOURCESDIRECTORY%\
cd %BUILD_SOURCESDIRECTORY%\boost-root
python tools/boostdep/depinst/depinst.py --include benchmark --include example --include examples --include tools %DEPINST% %SELF:\=/% || EXIT /B
REM Bootstrap is not expecting cxxflags content so we zero it out for the bootstrap only
SET OLD_CXXFLAGS=%CXXFLAGS%
SET CXXFLAGS=
SET OLD_B2_CXXFLAGS=%OLD_B2_CXXFLAGS%
SET B2_CXXFLAGS=
CMD /K bootstrap
IF NOT %ERRORLEVEL% == 0 (
type bootstrap.log
EXIT /B 1
)
SET CXXFLAGS=%OLD_CXXFLAGS%
SET B2_CXXFLAGS=%OLD_B2_CXXFLAGS%
b2 headers