forked from boostorg/system
Add Windows jobs to Drone
This commit is contained in:
@ -23,6 +23,10 @@ def main(ctx):
|
||||
linux_cxx("Clang 11 UBSAN", "clang++-11", packages="clang-11", llvm_os="xenial", llvm_ver="11", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'UBSAN': '1', 'TOOLSET': 'clang', 'COMPILER': 'clang++-11', 'CXXSTD': '03,11,14,17,20', 'UBSAN_OPTIONS': 'print_stacktrace=1', 'DRONE_JOB_UUID': '0ade7c2cf9'}, globalenv=globalenv),
|
||||
linux_cxx("Clang libc++ UBSAN", "clang++-libc++", packages="libc++-dev", buildtype="boost", buildscript="drone", image="cppalliance/droneubuntu1804:1", environment={'UBSAN': '1', 'TOOLSET': 'clang', 'COMPILER': 'clang++-libc++', 'CXXSTD': '03,11,14,17,2a', 'UBSAN_OPTIONS': 'print_stacktrace=1', 'DRONE_JOB_UUID': 'b1d5781111'}, globalenv=globalenv),
|
||||
osx_cxx("Clang UBSAN", "clang++", packages="", buildtype="boost", buildscript="drone", xcode_version="12.2", environment={'UBSAN': '1', 'TOOLSET': 'clang', 'COMPILER': 'clang++', 'CXXSTD': '03,11,14,1z', 'UBSAN_OPTIONS': 'print_stacktrace=1', 'DRONE_JOB_UUID': '0716d9708d'}, globalenv=globalenv),
|
||||
windows_cxx("msvc-14.0", "", image="cppalliance/dronevs2015", buildtype="boost", buildscript="drone", environment={"B2_TOOLSET": "msvc-14.0", "B2_CXXSTD": "14,latest"}, globalenv=globalenv),
|
||||
windows_cxx("msvc-14.1", "", image="cppalliance/dronevs2017", buildtype="boost", buildscript="drone", environment={"B2_TOOLSET": "msvc-14.1", "B2_CXXSTD": "14,17,latest"}, globalenv=globalenv),
|
||||
windows_cxx("msvc-14.2", "", image="cppalliance/dronevs2019", buildtype="boost", buildscript="drone", environment={"B2_TOOLSET": "msvc-14.2", "B2_CXXSTD": "14,17,20,latest"}, globalenv=globalenv),
|
||||
windows_cxx("msvc-14.3", "", image="cppalliance/dronevs2022:1", buildtype="boost", buildscript="drone", environment={"B2_TOOLSET": "msvc-14.3", "B2_CXXSTD": "14,17,20,latest"}, globalenv=globalenv)
|
||||
]
|
||||
|
||||
# from https://github.com/boostorg/boost-ci
|
||||
|
32
.drone/drone.bat
Normal file
32
.drone/drone.bat
Normal file
@ -0,0 +1,32 @@
|
||||
@ECHO ON
|
||||
setlocal enabledelayedexpansion
|
||||
|
||||
set TRAVIS_OS_NAME=windows
|
||||
|
||||
IF "!DRONE_BRANCH!" == "" (
|
||||
for /F %%i in ("!GITHUB_REF!") do @set TRAVIS_BRANCH=%%~nxi
|
||||
) else (
|
||||
SET TRAVIS_BRANCH=!DRONE_BRANCH!
|
||||
)
|
||||
|
||||
echo '==================================> INSTALL'
|
||||
REM there seems to be some problem with b2 bootstrap on Windows
|
||||
REM when CXX env variable is set
|
||||
SET "CXX="
|
||||
|
||||
git clone https://github.com/boostorg/boost-ci.git boost-ci-cloned --depth 1
|
||||
cp -prf boost-ci-cloned/ci .
|
||||
rm -rf boost-ci-cloned
|
||||
REM source ci/travis/install.sh
|
||||
REM The contents of install.sh below:
|
||||
|
||||
for /F %%i in ("%DRONE_REPO%") do @set SELF=%%~nxi
|
||||
SET BOOST_CI_TARGET_BRANCH=!TRAVIS_BRANCH!
|
||||
SET BOOST_CI_SRC_FOLDER=%cd%
|
||||
|
||||
call ci\common_install.bat
|
||||
|
||||
echo '==================================> COMPILE'
|
||||
|
||||
set B2_TARGETS=libs/!SELF!/test libs/!SELF!/example
|
||||
call !BOOST_ROOT!\libs\!SELF!\ci\build.bat
|
Reference in New Issue
Block a user