-
Notifications
You must be signed in to change notification settings - Fork 141
Drone #250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Drone #250
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
42bdfb5
Fixed file_descriptor move assignment operator to return a reference …
VA7ODR baa8d3f
Returning *this instead of erroneous *this. Issue # 219
VA7ODR fa2a522
Merge pull request #220 from odhinnsrunes/file_descriptor_move_assign…
klemens-morgenstern a13a60d
Removed unneeded WNOHANG.
klemens-morgenstern 8dc5ee2
Merge remote-tracking branch 'boostorg/develop' into develop
klemens-morgenstern 6d08cb3
Closes boostorg/process#190
klemens-morgenstern a60203d
Closes boostorg/process#121
klemens-morgenstern 20b328d
Attempting to fix wchar_t build error on circle.
klemens-morgenstern 0c3ded6
Closes boostorg/process#197.
klemens-morgenstern f8f9c23
Changed child(pid_t) signature.
klemens-morgenstern 268795f
Multiple fixes.
klemens-morgenstern cd4ef69
Closes boostorg/process#189.
klemens-morgenstern 9bb088e
Closes boostorg/process#191.
klemens-morgenstern 3acc1a3
Added missing work guard on windows.
klemens-morgenstern 5ad5e82
Trying to catch windows early complete.
klemens-morgenstern 83380da
Increased log level on windows.
klemens-morgenstern ed3b066
Multiple windows test fixes
klemens-morgenstern 71aa7d9
Merge commit 'ed3b066' into develop
klemens-morgenstern e32651a
Removed overly constraint tests.
klemens-morgenstern f4d2c26
Merge pull request #231 from klemens-morgenstern/develop
klemens-morgenstern d26ef52
fix missing headers
5f80e72
Closes klemens-morgenstern/boost-process#218
10c93d8
Merge pull request #228 from x-santiaga-x/patch-2
klemens-morgenstern c1d0f1b
Merge pull request #227 from x-santiaga-x/patch-1
klemens-morgenstern ea26c7b
Update executor.hpp
ikrijan dc8ba65
Merge pull request #249 from ikrijan/patch-1
klemens-morgenstern dcc8fd3
Fix posix implementation of move constructor/assignment in file_descr…
Shauren 129a2e9
Adjust docs `@boost` relative paths
alandefreitas 2aeac01
Fixed UB for large environment names.
klemens-morgenstern 7a81779
Closes boostorg/process#207.
klemens-morgenstern 254de92
Drone setup
klemens-morgenstern 8f6e04c
Added include for filesystem::fstream.
klemens-morgenstern 3b4e4b2
Disabled useless tests.
klemens-morgenstern 20ec1f1
Fixed environment length checks.
klemens-morgenstern 85b2b7b
Pipe test & warning fixes.
klemens-morgenstern b439973
Disabled warnings & added windows include fix.
klemens-morgenstern c473824
More test fixes.
klemens-morgenstern 8977270
Removed some tests from apple build.
klemens-morgenstern 2465d9d
Removed some tests from apple build.
klemens-morgenstern bb4e23d
Disabled OSX tests via build script & fixed windows examples.
klemens-morgenstern 21f53b7
TSA fix attempt.
klemens-morgenstern 762e639
Merge branch 'develop' into drone
klemens-morgenstern File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| # Use, modification, and distribution are | ||
| # subject to the Boost Software License, Version 1.0. (See accompanying | ||
| # file LICENSE.txt) | ||
| # | ||
| # Copyright Rene Rivera 2020. | ||
|
|
||
| # For Drone CI we use the Starlark scripting language to reduce duplication. | ||
| # As the yaml syntax for Drone CI is rather limited. | ||
| # | ||
| # | ||
| globalenv={'B2_CI_VERSION': '1', 'B2_VARIANT': 'release'} | ||
| linuxglobalimage="cppalliance/droneubuntu1804:1" | ||
| windowsglobalimage="cppalliance/dronevs2019" | ||
|
|
||
| def main(ctx): | ||
| return [ | ||
| linux_cxx("gcc 11 arm64", "g++-11", packages="g++-11", buildtype="boost", buildscript="drone", image="cppalliance/droneubuntu2004:multiarch", environment={'B2_TOOLSET': 'gcc-11', 'B2_CXXSTD': '17,2a', 'DRONE_JOB_UUID': '17ba079169m'}, arch="arm64", globalenv=globalenv), | ||
| # A set of jobs based on the earlier .travis.yml configuration: | ||
| linux_cxx("GCC 10, Debug + Coverage", "g++-10", packages="g++-10 libssl-dev libffi-dev binutils-gold gdb mlocate", image="cppalliance/droneubuntu2004:1", buildtype="boost_v1", buildscript="drone", environment={"GCOV": "gcov-10", "LCOV_VERSION": "1.15", "VARIANT": "process_coverage", "TOOLSET": "gcc", "COMPILER": "g++-10", "CXXSTD": "14", "DRONE_BEFORE_INSTALL" : "process_coverage", "CODECOV_TOKEN": {"from_secret": "codecov_token"}}, globalenv=globalenv, privileged=True), | ||
| linux_cxx("Default clang++ with libc++", "clang++-libc++", packages="libc++-dev mlocate", image="cppalliance/droneubuntu1604:1", buildtype="boost_v1", buildscript="drone", environment={ "B2_TOOLSET": "clang-7", "B2_CXXSTD": "17,2a", "VARIANT": "debug", "TOOLSET": "clang", "COMPILER": "clang++-libc++", "CXXSTD": "11", "CXX_FLAGS": "<cxxflags>-stdlib=libc++ <linkflags>-stdlib=libc++", "TRAVISCLANG" : "yes" }, globalenv=globalenv), | ||
| linux_cxx("GCC Valgrind", "g++", packages="g++-7 libssl-dev valgrind mlocate", image="cppalliance/droneubuntu2004:1", buildtype="boost_v1", buildscript="drone", environment={ "VARIANT": "process_valgrind", "TOOLSET": "gcc", "COMPILER": "g++", "CXXSTD": "11" }, globalenv=globalenv), | ||
| linux_cxx("Default g++", "g++", packages="mlocate", image="cppalliance/droneubuntu1604:1", buildtype="boost_v1", buildscript="drone", environment={ "VARIANT": "release", "TOOLSET": "gcc", "COMPILER": "g++", "CXXSTD": "11" }, globalenv=globalenv), | ||
| linux_cxx("GCC 8, C++17, libstdc++, release", "g++-8", packages="g++-8 mlocate", image="cppalliance/droneubuntu1604:1", buildtype="boost_v1", buildscript="drone", environment={ "VARIANT": "release", "TOOLSET": "gcc", "COMPILER": "g++-8", "CXXSTD" : "17" }, globalenv=globalenv), | ||
| linux_cxx("Clang 3.8, UBasan", "clang++-3.8", packages="clang-3.8 libssl-dev mlocate", llvm_os="precise", llvm_ver="3.8", image="cppalliance/droneubuntu1604:1", buildtype="boost_v1", buildscript="drone", environment={"VARIANT": "process_ubasan", "TOOLSET": "clang", "COMPILER": "clang++-3.8", "CXXSTD": "11", "UBSAN_OPTIONS": 'print_stacktrace=1', "DRONE_BEFORE_INSTALL": "UBasan" }, globalenv=globalenv), | ||
| linux_cxx("docs", "", packages="docbook docbook-xml docbook-xsl xsltproc libsaxonhe-java default-jre-headless flex libfl-dev bison unzip rsync mlocate", image="cppalliance/droneubuntu1804:1", buildtype="docs", buildscript="drone", environment={"COMMENT": "docs"}, globalenv=globalenv), | ||
| # Next, a standard list of tests from boost-ci: | ||
| linux_cxx("asan", "g++-8", packages="g++-8", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'COMMENT': 'asan', 'B2_VARIANT': 'debug', 'B2_TOOLSET': 'gcc-8', 'B2_CXXSTD': '11,14', 'B2_ASAN': '1', 'B2_DEFINES': 'BOOST_NO_STRESS_TEST=1', 'DRONE_EXTRA_PRIVILEGED': 'True', 'DRONE_JOB_UUID': '356a192b79'}, globalenv=globalenv, privileged=True), | ||
| linux_cxx("tsan", "g++-8", packages="g++-8", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'COMMENT': 'tsan', 'B2_VARIANT': 'debug', 'B2_TOOLSET': 'gcc-8', 'B2_CXXSTD': '11,14', 'B2_TSAN': '1', 'B2_DEFINES': 'BOOST_NO_STRESS_TEST=1', 'DRONE_JOB_UUID': 'da4b9237ba'}, globalenv=globalenv), | ||
| linux_cxx("ubsan", "g++-8", packages="g++-8", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'COMMENT': 'ubsan', 'B2_VARIANT': 'debug', 'B2_TOOLSET': 'gcc-8', 'B2_CXXSTD': '11,14', 'B2_UBSAN': '1', 'B2_DEFINES': 'BOOST_NO_STRESS_TEST=1', 'B2_LINKFLAGS': '-fuse-ld=gold', 'DRONE_JOB_UUID': '77de68daec'}, globalenv=globalenv), | ||
| # a boost-ci based version of codecov. However, codecov has already been run, above. | ||
| # linux_cxx("codecov", "g++-8", packages="g++-8", buildtype="codecov", buildscript="drone", image=linuxglobalimage, environment={'COMMENT': 'codecov.io', 'B2_CXXSTD': '11', 'B2_TOOLSET': 'gcc-8', 'B2_DEFINES': 'BOOST_NO_STRESS_TEST=1', 'DRONE_JOB_UUID': 'b6589fc6ab', "CODECOV_TOKEN": {"from_secret": "codecov_token"}}, globalenv=globalenv), | ||
| # gcc 4.8 is failing: | ||
| # # linux_cxx("gcc 4.8", "g++-4.8", packages="g++-4.8", buildtype="boost", buildscript="drone", image="cppalliance/droneubuntu1604:1", environment={'B2_TOOLSET': 'gcc-4.8', 'B2_CXXSTD': '11', 'DRONE_JOB_UUID': 'ac3478d69a'}, globalenv=globalenv), | ||
| linux_cxx("gcc 5", "g++-5", packages="g++-5", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'gcc-5', 'B2_CXXSTD': '11', 'DRONE_JOB_UUID': '902ba3cda1'}, globalenv=globalenv), | ||
| linux_cxx("gcc 6", "g++-6", packages="g++-6", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'gcc-6', 'B2_CXXSTD': '11,14', 'DRONE_JOB_UUID': 'fe5dbbcea5'}, globalenv=globalenv), | ||
| # # linux_cxx("gcc 7", "g++-7", packages="g++-7", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'gcc-7', 'B2_CXXSTD': '14,17', 'DRONE_JOB_UUID': '0ade7c2cf9'}, globalenv=globalenv), | ||
| # # linux_cxx("gcc 8", "g++-8", packages="g++-8", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'gcc-8', 'B2_CXXSTD': '17,2a', 'DRONE_JOB_UUID': 'b1d5781111'}, globalenv=globalenv), | ||
| # # linux_cxx("gcc 9", "g++-9", packages="g++-9", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'gcc-9', 'B2_CXXSTD': '17,2a', 'DRONE_JOB_UUID': '17ba079149'}, globalenv=globalenv), | ||
| # # linux_cxx("gcc 10", "g++-10", packages="g++-10", buildtype="boost", buildscript="drone", image="cppalliance/droneubuntu2004:1", environment={'B2_TOOLSET': 'gcc-10', 'B2_CXXSTD': '17,2a', 'DRONE_JOB_UUID': '17ba079159'}, globalenv=globalenv), | ||
| linux_cxx("gcc 11", "g++-11", packages="g++-11", buildtype="boost", buildscript="drone", image="cppalliance/droneubuntu2004:1", environment={'B2_TOOLSET': 'gcc-11', 'B2_CXXSTD': '17,2a', 'DRONE_JOB_UUID': '17ba079169'}, globalenv=globalenv), | ||
| linux_cxx("clang 3.8", "clang++-3.8", packages="clang-3.8", buildtype="boost", buildscript="drone", image="cppalliance/droneubuntu1604:1", environment={'B2_TOOLSET': 'clang', 'COMPILER': 'clang++-3.8', 'B2_CXXSTD': '11', 'DRONE_JOB_UUID': '7b52009b64'}, globalenv=globalenv), | ||
| # # linux_cxx("clang 4.0", "clang++-4.0", packages="clang-4.0 libstdc++-6-dev", llvm_os="xenial", llvm_ver="4.0", buildtype="boost", buildscript="drone", image="cppalliance/droneubuntu1604:1", environment={'B2_TOOLSET': 'clang', 'COMPILER': 'clang++-4.0', 'B2_CXXSTD': '11,14', 'DRONE_JOB_UUID': 'bd307a3ec3'}, globalenv=globalenv), | ||
| # # linux_cxx("clang 5.0", "clang++-5.0", packages="clang-5.0 libstdc++-7-dev", llvm_os="bionic", llvm_ver="5.0", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'clang', 'COMPILER': 'clang++-5.0', 'B2_CXXSTD': '11,14', 'DRONE_JOB_UUID': 'fa35e19212'}, globalenv=globalenv), | ||
| # # linux_cxx("clang 6.0", "clang++-6.0", packages="clang-6.0 libc6-dbg libc++-dev libstdc++-8-dev", llvm_os="bionic", llvm_ver="6.0", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'clang', 'COMPILER': 'clang++-6.0', 'B2_CXXSTD': '14,17', 'DRONE_JOB_UUID': 'f1abd67035'}, globalenv=globalenv), | ||
| # # linux_cxx("clang 7", "clang++-7", packages="clang-7 libc6-dbg libc++-dev libstdc++-8-dev", llvm_os="bionic", llvm_ver="7", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'clang', 'COMPILER': 'clang++-7', 'B2_CXXSTD': '17,2a', 'DRONE_JOB_UUID': '1574bddb75'}, globalenv=globalenv), | ||
| # # linux_cxx("clang 8", "clang++-8", packages="clang-8 libc6-dbg libc++-dev libstdc++-8-dev", llvm_os="bionic", llvm_ver="8", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'clang', 'COMPILER': 'clang++-8', 'B2_CXXSTD': '17,2a', 'DRONE_JOB_UUID': '0716d9708d'}, globalenv=globalenv), | ||
| # # linux_cxx("clang 9", "clang++-9", packages="clang-9 libc6-dbg libc++-dev libstdc++-9-dev", llvm_os="bionic", llvm_ver="9", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'clang', 'COMPILER': 'clang++-9', 'B2_CXXSTD': '11,14,17,2a', 'DRONE_JOB_UUID': '9e6a55b6b4'}, globalenv=globalenv), | ||
| # # linux_cxx("clang 10", "clang++-10", packages="clang-10 libc6-dbg libc++-dev libstdc++-9-dev", llvm_os="focal", llvm_ver="10", buildtype="boost", buildscript="drone", image="cppalliance/droneubuntu2004:1", environment={'B2_TOOLSET': 'clang', 'COMPILER': 'clang++-10', 'B2_CXXSTD': '11,14,17,2a', 'DRONE_JOB_UUID': '9e6a55b6c4'}, globalenv=globalenv), | ||
| # # linux_cxx("clang 11", "clang++-11", packages="clang-11 libc6-dbg libc++-dev libstdc++-9-dev", llvm_os="focal", llvm_ver="11", buildtype="boost", buildscript="drone", image="cppalliance/droneubuntu2004:1", environment={'B2_TOOLSET': 'clang', 'COMPILER': 'clang++-11', 'B2_CXXSTD': '11,14,17,2a', 'DRONE_JOB_UUID': '9e6a55b6b4'}, globalenv=globalenv), | ||
| linux_cxx("clang 12", "clang++-12", packages="clang-12 libc6-dbg libc++-dev libstdc++-9-dev", llvm_os="focal", llvm_ver="12", buildtype="boost", buildscript="drone", image="cppalliance/droneubuntu2004:1", environment={'B2_TOOLSET': 'clang', 'COMPILER': 'clang++-12', 'B2_CXXSTD': '11,14,17,20', 'DRONE_JOB_UUID': '9e6a55b6b5'}, globalenv=globalenv), | ||
| # # linux_cxx("clang 6.0 libc++", "clang++-6.0", packages="clang-6.0 libc6-dbg libc++-dev libstdc++-8-dev libc++abi-dev", llvm_os="bionic", llvm_ver="6.0", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'clang', 'COMPILER': 'clang++-6.0', 'B2_CXXSTD': '11,14', 'B2_STDLIB': 'libc++', 'DRONE_JOB_UUID': 'b3f0c7f6bb'}, globalenv=globalenv), | ||
| osx_cxx("clang", "g++", packages="", buildtype="boost", buildscript="drone", environment={'B2_TOOLSET': 'clang', 'B2_CXXSTD': '11,17', 'DRONE_JOB_UUID': '91032ad7bb'}, globalenv=globalenv), | ||
| linux_cxx("coverity", "g++", packages="", buildtype="coverity", buildscript="drone", image=linuxglobalimage, environment={'COMMENT': 'Coverity Scan', 'B2_TOOLSET': 'clang', 'DRONE_JOB_UUID': '472b07b9fc'}, globalenv=globalenv), | ||
| windows_cxx("msvc-14.1", "", image="cppalliance/dronevs2017", buildtype="boost", buildscript="drone", environment={ "VARIANT": "release", "TOOLSET": "msvc-14.1", "CXXSTD": "17", "DEFINE" : "BOOST_BEAST_USE_STD_STRING_VIEW", "ADDRESS_MODEL": "64"}), | ||
| # # windows_cxx("msvc-14.2", "", image="cppalliance/dronevs2019", buildtype="boost", buildscript="drone", environment={ "VARIANT": "release", "TOOLSET": "msvc-14.2", "CXXSTD": "17", "DEFINE" : "BOOST_BEAST_USE_STD_STRING_VIEW", "ADDRESS_MODEL": "64"}), | ||
| windows_cxx("msvc-14.3", "", image="cppalliance/dronevs2022:1", buildtype="boost", buildscript="drone", environment={ "VARIANT": "release", "TOOLSET": "msvc-14.3", "CXXSTD": "20", "DEFINE" : "BOOST_BEAST_USE_STD_STRING_VIEW", "ADDRESS_MODEL": "64"}), | ||
| ] | ||
|
|
||
| # from https://github.com/boostorg/boost-ci | ||
| load("@boost_ci//ci/drone/:functions.star", "linux_cxx","windows_cxx","osx_cxx","freebsd_cxx") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| @ECHO ON | ||
| setlocal enabledelayedexpansion | ||
|
|
||
| if "%DRONE_JOB_BUILDTYPE%" == "boost" ( | ||
|
|
||
| echo '==================================> INSTALL' | ||
|
|
||
| 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=%DRONE_COMMIT_BRANCH% | ||
| SET BOOST_CI_SRC_FOLDER=%cd% | ||
|
|
||
| call ci\common_install.bat | ||
|
|
||
| echo '==================================> COMPILE' | ||
|
|
||
| REM set B2_TARGETS=libs/!SELF!/test libs/!SELF!/example | ||
| set B2_TARGETS=libs/!SELF!/test | ||
|
|
||
| cd !BOOST_ROOT! | ||
| call bootstrap.bat | ||
| b2 headers | ||
| b2 --debug-configuration variant=%VARIANT% cxxstd=%CXXSTD% define=%DEFINE% address-model=%ADDRESS_MODEL% toolset=%TOOLSET% --verbose-test libs/!SELF!/test -j3 | ||
| b2 --debug-configuration variant=%VARIANT% cxxstd=%CXXSTD% define=%DEFINE% address-model=%ADDRESS_MODEL% toolset=%TOOLSET% --verbose-test libs/!SELF!/example -j3 | ||
|
|
||
| ) else if "%DRONE_JOB_BUILDTYPE%" == "standalone-windows" ( | ||
|
|
||
| REM not used | ||
|
|
||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,199 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Copyright 2020 Rene Rivera, Sam Darwin | ||
| # Distributed under the Boost Software License, Version 1.0. | ||
| # (See accompanying file LICENSE.txt or copy at http://boost.org/LICENSE_1_0.txt) | ||
|
|
||
| set -xe | ||
|
|
||
| export TRAVIS_BUILD_DIR=$(pwd) | ||
| export DRONE_BUILD_DIR=$(pwd) | ||
| export TRAVIS_BRANCH=$DRONE_BRANCH | ||
| export TRAVIS_EVENT_TYPE=$DRONE_BUILD_EVENT | ||
| export VCS_COMMIT_ID=$DRONE_COMMIT | ||
| export GIT_COMMIT=$DRONE_COMMIT | ||
| export REPO_NAME=$DRONE_REPO | ||
| export USER=$(whoami) | ||
| export CC=${CC:-gcc} | ||
| export PATH=~/.local/bin:/usr/local/bin:$PATH | ||
|
|
||
| common_install () { | ||
| 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 | ||
|
|
||
| if [ "$TRAVIS_OS_NAME" == "osx" ]; then | ||
| unset -f cd | ||
| fi | ||
|
|
||
| export SELF=`basename $REPO_NAME` | ||
| export BOOST_CI_TARGET_BRANCH="$TRAVIS_BRANCH" | ||
| export BOOST_CI_SRC_FOLDER=$(pwd) | ||
|
|
||
| . ./ci/common_install.sh | ||
| } | ||
|
|
||
| if [ "$DRONE_JOB_BUILDTYPE" == "boost" ]; then | ||
|
|
||
| echo '==================================> INSTALL' | ||
|
|
||
| common_install | ||
|
|
||
| echo '==================================> SCRIPT' | ||
|
|
||
| $BOOST_ROOT/libs/$SELF/ci/travis/build.sh | ||
|
|
||
| elif [ "$DRONE_JOB_BUILDTYPE" == "docs" ]; then | ||
|
|
||
| echo '==================================> INSTALL' | ||
|
|
||
| export SELF=`basename $REPO_NAME` | ||
|
|
||
| pwd | ||
| cd .. | ||
| mkdir -p $HOME/cache && cd $HOME/cache | ||
| if [ ! -d doxygen ]; then git clone -b 'Release_1_8_15' --depth 1 https://github.com/doxygen/doxygen.git && echo "not-cached" ; else echo "cached" ; fi | ||
| cd doxygen | ||
| cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release | ||
| cd build | ||
| sudo make install | ||
| cd ../.. | ||
| if [ ! -f saxonhe.zip ]; then wget -O saxonhe.zip https://sourceforge.net/projects/saxon/files/Saxon-HE/9.9/SaxonHE9-9-1-4J.zip/download && echo "not-cached" ; else echo "cached" ; fi | ||
| unzip -o saxonhe.zip | ||
| sudo rm /usr/share/java/Saxon-HE.jar | ||
| sudo cp saxon9he.jar /usr/share/java/Saxon-HE.jar | ||
| cd .. | ||
| BOOST_BRANCH=develop && [ "$TRAVIS_BRANCH" == "master" ] && BOOST_BRANCH=master || true | ||
| git clone -b $BOOST_BRANCH https://github.com/boostorg/boost.git boost-root --depth 1 | ||
| cd boost-root | ||
| export BOOST_ROOT=$(pwd) | ||
| git submodule update --init libs/context | ||
| git submodule update --init tools/boostbook | ||
| git submodule update --init tools/boostdep | ||
| git submodule update --init tools/docca | ||
| git submodule update --init tools/quickbook | ||
| rsync -av $TRAVIS_BUILD_DIR/ libs/$SELF | ||
| python tools/boostdep/depinst/depinst.py ../tools/quickbook | ||
| ./bootstrap.sh | ||
| ./b2 headers | ||
|
|
||
| echo '==================================> SCRIPT' | ||
|
|
||
| echo "using doxygen ; using boostbook ; using saxonhe ;" > tools/build/src/user-config.jam | ||
| ./b2 -j3 libs/$SELF/doc//boostrelease | ||
|
|
||
| elif [ "$DRONE_JOB_BUILDTYPE" == "codecov" ]; then | ||
|
|
||
| echo '==================================> INSTALL' | ||
|
|
||
| common_install | ||
|
|
||
| echo '==================================> SCRIPT' | ||
|
|
||
| cd $BOOST_ROOT/libs/$SELF | ||
| ci/travis/codecov.sh | ||
|
|
||
| elif [ "$DRONE_JOB_BUILDTYPE" == "valgrind" ]; then | ||
|
|
||
| echo '==================================> INSTALL' | ||
|
|
||
| common_install | ||
|
|
||
| echo '==================================> SCRIPT' | ||
|
|
||
| cd $BOOST_ROOT/libs/$SELF | ||
| ci/travis/valgrind.sh | ||
|
|
||
| elif [ "$DRONE_JOB_BUILDTYPE" == "standalone" ]; then | ||
|
|
||
| echo '==================================> INSTALL' | ||
|
|
||
| # Installing cmake with apt-get, so not required here: | ||
| # pip install --user cmake | ||
|
|
||
| echo '==================================> SCRIPT' | ||
|
|
||
| export CXXFLAGS="-Wall -Wextra -Werror -std=c++17" | ||
| mkdir __build_17 | ||
| cd __build_17 | ||
| cmake -DBOOST_JSON_STANDALONE=1 .. | ||
| cmake --build . | ||
| ctest -V . | ||
| export CXXFLAGS="-Wall -Wextra -Werror -std=c++2a" | ||
| mkdir ../__build_2a | ||
| cd ../__build_2a | ||
| cmake -DBOOST_JSON_STANDALONE=1 .. | ||
| cmake --build . | ||
| ctest -V . | ||
|
|
||
| elif [ "$DRONE_JOB_BUILDTYPE" == "coverity" ]; then | ||
|
|
||
| echo '==================================> INSTALL' | ||
|
|
||
| common_install | ||
|
|
||
| echo '==================================> SCRIPT' | ||
|
|
||
| if [ $VARIANT = "process_valgrind" ]; | ||
| then export USE_VALGRIND="testing.launcher=valgrind valgrind=on"; | ||
| fi ; | ||
|
|
||
| if [ -n "${COVERITY_SCAN_NOTIFICATION_EMAIL}" -a \( "$TRAVIS_BRANCH" = "develop" -o "$TRAVIS_BRANCH" = "master" \) -a \( "$DRONE_BUILD_EVENT" = "push" -o "$DRONE_BUILD_EVENT" = "cron" \) ] ; then | ||
| cd $BOOST_ROOT/libs/$SELF | ||
| ci/travis/coverity.sh | ||
| fi | ||
|
|
||
| elif [ "$DRONE_JOB_BUILDTYPE" == "cmake-superproject" ]; then | ||
|
|
||
| echo '==================================> INSTALL' | ||
|
|
||
| common_install | ||
|
|
||
| echo '==================================> COMPILE' | ||
|
|
||
| export CXXFLAGS="-Wall -Wextra -Werror" | ||
|
|
||
| mkdir __build_static | ||
| cd __build_static | ||
| cmake -DBOOST_ENABLE_CMAKE=1 -DBUILD_TESTING=ON -DBoost_VERBOSE=1 \ | ||
| -DBOOST_INCLUDE_LIBRARIES=$SELF .. | ||
| cmake --build . | ||
| ctest --output-on-failure -R boost_$SELF | ||
|
|
||
| cd .. | ||
|
|
||
| mkdir __build_shared | ||
| cd __build_shared | ||
| cmake -DBOOST_ENABLE_CMAKE=1 -DBUILD_TESTING=ON -DBoost_VERBOSE=1 \ | ||
| -DBOOST_INCLUDE_LIBRARIES=$SELF -DBUILD_SHARED_LIBS=ON .. | ||
| cmake --build . | ||
| ctest --output-on-failure -R boost_$SELF | ||
|
|
||
| elif [ "$DRONE_JOB_BUILDTYPE" == "cmake1" ]; then | ||
|
|
||
| echo '==================================> INSTALL' | ||
|
|
||
| pip install --user cmake | ||
|
|
||
| echo '==================================> SCRIPT' | ||
|
|
||
| export SELF=`basename $REPO_NAME` | ||
| BOOST_BRANCH=develop && [ "$DRONE_BRANCH" == "master" ] && BOOST_BRANCH=master || true | ||
| echo BOOST_BRANCH: $BOOST_BRANCH | ||
| cd .. | ||
| git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root | ||
| cd boost-root | ||
| mkdir -p libs/$SELF | ||
| cp -r $DRONE_BUILD_DIR/* libs/$SELF | ||
| # git submodule update --init tools/boostdep | ||
| git submodule update --init --recursive | ||
|
|
||
| cd libs/$SELF | ||
|
|
||
| ../../../b2 -sBOOST_BUILD_PATH=. | ||
| ../../../b2 $MULTITHREAD with-valgrind address-model=64 architecture=x86 $USE_VALGRIND toolset=$TOOLSET cxxflags="--coverage -DBOOST_TRAVISCI_BUILD -std=$CXX_STANDARD" linkflags="--coverage" -sBOOST_BUILD_PATH=. $REPORT_CI | ||
| ../../../b2 $MULTITHREAD without-valgrind address-model=64 architecture=x86 toolset=$TOOLSET cxxflags="--coverage -DBOOST_TRAVISCI_BUILD -std=$CXX_STANDARD" linkflags="--coverage" -sBOOST_BUILD_PATH=. $REPORT_CI | ||
|
|
||
|
|
||
|
|
||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks the superproject build on which you basically rely by using
BOOST_SUPERPROJECT_VERSIONThat in turn also breaks dependent libraries
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed. The Boost CMake build is broken now, as a result of this change. Please fix.