From 7087db945776e6ca67f76a63287c52bb6ab879ff Mon Sep 17 00:00:00 2001 From: sdarwin Date: Tue, 7 Apr 2026 11:01:55 -0600 Subject: [PATCH] Drone: drone.sh --- .drone/drone.sh | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 .drone/drone.sh diff --git a/.drone/drone.sh b/.drone/drone.sh new file mode 100755 index 00000000..7ada578e --- /dev/null +++ b/.drone/drone.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +set -ex +export TRAVIS_BUILD_DIR=$(pwd) +export DRONE_BUILD_DIR=$(pwd) +export TRAVIS_BRANCH=$DRONE_BRANCH +export VCS_COMMIT_ID=$DRONE_COMMIT +export GIT_COMMIT=$DRONE_COMMIT +export REPO_NAME=$DRONE_REPO +export PATH=~/.local/bin:/usr/local/bin:$PATH + +echo '==================================> BEFORE_INSTALL' + +. .drone/before-install.sh + +echo '==================================> INSTALL' + +gem install asciidoctor || echo "ERROR. Failed to install asciidoctor" +gem install coderay || echo "ERROR. Failed to install coderay" +cd .. +git clone -b master --depth 1 https://github.com/boostorg/boost.git boost-root +cd boost-root +git submodule update --init tools/build +git submodule update --init tools/inspect +git submodule update --init libs/config +git submodule update --init tools/boostdep +rm -rf libs/exception +mkdir libs/exception +cp -r $TRAVIS_BUILD_DIR/* libs/exception +python tools/boostdep/depinst/depinst.py exception +./bootstrap.sh +./b2 headers +cd libs/exception + +echo '==================================> BEFORE_SCRIPT' + +. $DRONE_BUILD_DIR/.drone/before-script.sh + +echo '==================================> SCRIPT' + +echo "using $TOOLSET : : $COMPILER ;" > ~/user-config.jam +../../b2 test toolset=$TOOLSET cxxstd=$CXXSTD variant=debug,release ${UBSAN:+cxxflags=-fsanitize=address,undefined cxxflags=-fno-sanitize-recover=address,undefined linkflags=-fsanitize=address,undefined debug-symbols=on} ${LINKFLAGS:+linkflags=$LINKFLAGS} +../../b2 exception-handling=off rtti=off test toolset=$TOOLSET cxxstd=$CXXSTD variant=debug,release ${UBSAN:+cxxflags=-fsanitize=address,undefined cxxflags=-fno-sanitize-recover=address,undefined linkflags=-fsanitize=address,undefined debug-symbols=on} ${LINKFLAGS:+linkflags=$LINKFLAGS} + +echo '==================================> AFTER_SUCCESS' + +. $DRONE_BUILD_DIR/.drone/after-success.sh