Update .drone.jsonnet

This commit is contained in:
Peter Dimov
2022-02-07 06:27:43 +02:00
parent 8eff646954
commit b3ce404352

View File

@@ -26,9 +26,24 @@ local linux_pipeline(name, image, environment, arch = "amd64", sources = "", pac
"environment": environment,
"commands":
[
"uname -a",
'SELF=system',
if sources != "" then "apt-add-repository " + sources else "",
if packages != "" then "apt-get install " + packages else "",
'DRONE_BUILD_DIR=$(pwd)',
'BOOST_BRANCH=develop && [ "$DRONE_BRANCH" == "master" ] && BOOST_BRANCH=master || true',
'cd ..',
'git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root',
'cd boost-root',
'git submodule update --init tools/boostdep',
'cp -r $DRONE_BUILD_DIR/* libs/$SELF',
'python tools/boostdep/depinst/depinst.py $SELF',
'./bootstrap.sh',
'./b2 headers',
'echo "using $TOOLSET : : $COMPILER ;" > ~/user-config.jam',
'./b2 -j3 libs/$SELF/test toolset=$TOOLSET cxxstd=$CXXSTD variant=debug,release ${ADDRMD:+address-model=$ADDRMD} ${UBSAN:+cxxflags=-fsanitize=undefined cxxflags=-fno-sanitize-recover=undefined linkflags=-fsanitize=undefined define=UBSAN=1 debug-symbols=on} ${LINKFLAGS:+linkflags=$LINKFLAGS}'
]
}
]