forked from boostorg/date_time
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/develop' into develop
- Loading branch information
Showing
11 changed files
with
798 additions
and
56 deletions.
There are no files selected for viewing
This file contains 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,42 @@ | ||
# 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_VARIANT': 'variant=release'} | ||
linuxglobalimage="cppalliance/droneubuntu1604:1" | ||
windowsglobalimage="cppalliance/dronevs2019" | ||
|
||
def main(ctx): | ||
return [ | ||
linux_cxx("B2_TOOLSET=gcc-4.8 B2_CXXSTD=03,11 BOOST_DATE Job 0", "g++-4.8", packages="g++-4.8", buildtype="boost", buildscript="drone", image="cppalliance/droneubuntu1404:1", environment={'B2_TOOLSET': 'gcc-4.8', 'B2_CXXSTD': '03,11', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'DRONE_JOB_UUID': 'b6589fc6ab'}, globalenv=globalenv), | ||
linux_cxx("B2_TOOLSET=gcc-4.9 B2_CXXSTD=03,11 BOOST_DATE Job 1", "g++-4.9", packages="g++-4.9", buildtype="boost", buildscript="drone", image="cppalliance/droneubuntu1404:1", environment={'B2_TOOLSET': 'gcc-4.9', 'B2_CXXSTD': '03,11', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'DRONE_JOB_UUID': '356a192b79'}, globalenv=globalenv), | ||
linux_cxx("B2_TOOLSET=gcc-5 B2_CXXSTD=03,11 Job 2", "g++-5", packages="g++-5", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'gcc-5', 'B2_CXXSTD': '03,11', 'DRONE_JOB_UUID': 'da4b9237ba'}, globalenv=globalenv), | ||
linux_cxx("B2_TOOLSET=gcc-6 B2_CXXSTD=11,14 BOOST_DATE_T Job 3", "g++-6", packages="g++-6", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'gcc-6', 'B2_CXXSTD': '11,14', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'DRONE_JOB_UUID': '77de68daec'}, globalenv=globalenv), | ||
linux_cxx("B2_TOOLSET=gcc-7 B2_CXXSTD=14,17 BOOST_DATE_T Job 4", "g++-7", packages="g++-7", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'gcc-7', 'B2_CXXSTD': '14,17', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'DRONE_JOB_UUID': '1b64538924'}, globalenv=globalenv), | ||
linux_cxx("B2_TOOLSET=gcc-8 B2_CXXSTD=17,2a BOOST_DATE_T Job 5", "g++-8", packages="g++-8", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'gcc-8', 'B2_CXXSTD': '17,2a', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'DRONE_JOB_UUID': 'ac3478d69a'}, globalenv=globalenv), | ||
linux_cxx("B2_TOOLSET=gcc-9 B2_CXXSTD=17,2a BOOST_DATE_T Job 6", "g++-9", packages="g++-9", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'gcc-9', 'B2_CXXSTD': '17,2a', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'DRONE_JOB_UUID': 'c1dfd96eea'}, globalenv=globalenv), | ||
linux_cxx("B2_TOOLSET=clang-3.8 B2_CXXSTD=03,11 BOOST_DA Job 7", "clang++-3.8", packages="clang-3.8 libstdc++-6-dev", llvm_os="xenial", llvm_ver="3.8", buildtype="boost", buildscript="drone", image="cppalliance/droneubuntu1404:1", environment={'B2_TOOLSET': 'clang-3.8', 'B2_CXXSTD': '03,11', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'DRONE_JOB_UUID': '902ba3cda1'}, globalenv=globalenv), | ||
linux_cxx("B2_TOOLSET=clang-4.0 B2_CXXSTD=11,14 BOOST_DA Job 8", "clang++-4.0", packages="clang-4.0 libstdc++-6-dev", llvm_os="xenial", llvm_ver="4.0", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'clang-4.0', 'B2_CXXSTD': '11,14', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'DRONE_JOB_UUID': 'fe5dbbcea5'}, globalenv=globalenv), | ||
linux_cxx("B2_TOOLSET=clang-5.0 B2_CXXSTD=11,14 BOOST_DA Job 9", "clang++-5.0", packages="clang-5.0 libstdc++-7-dev", llvm_os="xenial", llvm_ver="5.0", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'clang-5.0', 'B2_CXXSTD': '11,14', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'DRONE_JOB_UUID': '0ade7c2cf9'}, globalenv=globalenv), | ||
linux_cxx("B2_TOOLSET=clang-6.0 B2_CXXSTD=14,17 BOOST_DA Job 10", "clang++-6.0", packages="clang-6.0 libc6-dbg libc++-dev libstdc++-8-dev", llvm_os="xenial", llvm_ver="6.0", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'clang-6.0', 'B2_CXXSTD': '14,17', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'DRONE_JOB_UUID': 'b1d5781111'}, globalenv=globalenv), | ||
linux_cxx("B2_TOOLSET=clang-7 B2_CXXSTD=17,2a BOOST_DATE Job 11", "clang++-7", packages="clang-7 libc6-dbg libc++-dev libstdc++-8-dev", llvm_os="xenial", llvm_ver="7", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'clang-7', 'B2_CXXSTD': '17,2a', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'DRONE_JOB_UUID': '17ba079149'}, globalenv=globalenv), | ||
linux_cxx("B2_TOOLSET=clang-8 B2_CXXSTD=17,2a BOOST_DATE Job 12", "clang++-8", packages="clang-8 libc6-dbg libc++-dev libstdc++-8-dev", llvm_os="xenial", llvm_ver="8", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'clang-8', 'B2_CXXSTD': '17,2a', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'DRONE_JOB_UUID': '7b52009b64'}, globalenv=globalenv), | ||
linux_cxx("B2_TOOLSET=clang-6.0 B2_CXXSTD=03,11,14 Job 13", "clang++-6.0", packages="clang-6.0 libc6-dbg libc++-dev libstdc++-8-dev", llvm_os="xenial", llvm_ver="6.0", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'clang-6.0', 'B2_CXXSTD': '03,11,14', 'B2_CXXFLAGS': '-stdlib=libc++', 'DRONE_JOB_UUID': 'bd307a3ec3'}, globalenv=globalenv), | ||
osx_cxx("B2_TOOLSET=clang B2_CXXSTD=03,11,17 BOOST_DAT Job 14", "g++", packages="", buildtype="boost", buildscript="drone", environment={'B2_TOOLSET': 'clang', 'B2_CXXSTD': '03,11,17', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'DRONE_JOB_UUID': 'fa35e19212'}, globalenv=globalenv), | ||
linux_cxx("COMMENT=codecov.io B2_CXXSTD=03,11 B2_TOOLSET Job 15", "g++-8", packages="g++-8", buildtype="b5847f804b-0fcaf592f9", buildscript="drone", image=linuxglobalimage, environment={'COMMENT': 'codecov.io', 'B2_CXXSTD': '03,11', 'B2_TOOLSET': 'gcc-8', 'B2_DEFINES': 'define=BOOST_NO_STRESS_TEST=1', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'DRONE_JOB_UUID': 'f1abd67035'}, globalenv=globalenv), | ||
linux_cxx("COMMENT=asan B2_VARIANT=variant=debug B2_TOOL Job 16", "g++-8", packages="g++-8", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'COMMENT': 'asan', 'B2_VARIANT': 'variant=debug', 'B2_TOOLSET': 'gcc-8', 'B2_CXXSTD': '03,11,14', 'B2_CXXFLAGS': 'address-sanitizer=norecover', 'B2_DEFINES': 'define=BOOST_NO_STRESS_TEST=1', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'DRONE_EXTRA_PRIVILEGED': 'True', 'DRONE_JOB_UUID': '1574bddb75'}, globalenv=globalenv, privileged=True), | ||
linux_cxx("COMMENT=tsan B2_VARIANT=variant=debug B2_TOOL Job 17", "g++-8", packages="g++-8", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'COMMENT': 'tsan', 'B2_VARIANT': 'variant=debug', 'B2_TOOLSET': 'gcc-8', 'B2_CXXSTD': '03,11,14', 'B2_CXXFLAGS': 'thread-sanitizer=norecover', 'B2_DEFINES': 'define=BOOST_NO_STRESS_TEST=1', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'DRONE_JOB_UUID': '0716d9708d'}, globalenv=globalenv), | ||
# allow_failures set for this job # | ||
# linux_cxx("COMMENT=ubsan B2_VARIANT=variant=debug B2_TOO Job 18", "g++-8", packages="g++-8", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'COMMENT': 'ubsan', 'B2_VARIANT': 'variant=debug', 'B2_TOOLSET': 'gcc-8', 'B2_CXXSTD': '03,11,14', 'B2_CXXFLAGS': 'undefined-sanitizer=norecover', 'B2_DEFINES': 'define=BOOST_NO_STRESS_TEST=1', 'B2_LINKFLAGS': 'linkflags=-fuse-ld=gold', 'UBSAN_OPTIONS': 'print_stacktrace=1', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'DRONE_JOB_UUID': '9e6a55b6b4'}, globalenv=globalenv), | ||
linux_cxx("COMMENT=valgrind B2_TOOLSET=clang-6.0 B2_CXXS Job 19", "clang++-6.0", packages="clang-6.0 libc6-dbg libc++-dev libstdc++-8-dev", llvm_os="xenial", llvm_ver="6.0", buildtype="b5847f804b-db180b7bd2", buildscript="drone", image=linuxglobalimage, environment={'COMMENT': 'valgrind', 'B2_TOOLSET': 'clang-6.0', 'B2_CXXSTD': '03,11,14', 'B2_DEFINES': 'define=BOOST_NO_STRESS_TEST=1', 'B2_VARIANT': 'variant=debug', 'B2_TESTFLAGS': 'testing.launcher=valgrind', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'VALGRIND_OPTS': '--error-exitcode=1', 'DRONE_JOB_UUID': 'b3f0c7f6bb'}, globalenv=globalenv), | ||
linux_cxx("COMMENT=Coverity Scan B2_TOOLSET=clang BOOS Job 20", "g++", packages="binutils-gold gdb libc6-dbg", buildtype="b5847f804b-cce9827eb5", buildscript="drone", image=linuxglobalimage, environment={'COMMENT': 'Coverity Scan', 'B2_TOOLSET': 'clang', 'BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS': '1', 'DRONE_JOB_UUID': '91032ad7bb'}, globalenv=globalenv), | ||
] | ||
|
||
# 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 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,107 @@ | ||
#!/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 -e | ||
set -x | ||
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 | ||
|
||
if [ "$DRONE_JOB_BUILDTYPE" == "boost" ]; then | ||
|
||
echo '==================================> INSTALL' | ||
|
||
git clone https://github.com/boostorg/boost-ci.git boost-ci | ||
cp -pr boost-ci/ci boost-ci/.codecov.yml . | ||
|
||
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 | ||
|
||
echo '==================================> SCRIPT' | ||
|
||
cd $BOOST_ROOT/libs/$SELF | ||
ci/travis/build.sh | ||
|
||
elif [ "$DRONE_JOB_BUILDTYPE" == "b5847f804b-0fcaf592f9" ]; then | ||
|
||
echo '==================================> INSTALL' | ||
|
||
git clone https://github.com/boostorg/boost-ci.git boost-ci | ||
cp -pr boost-ci/ci boost-ci/.codecov.yml . | ||
|
||
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 | ||
|
||
echo '==================================> SCRIPT' | ||
|
||
cd $BOOST_ROOT/libs/$SELF | ||
ci/travis/codecov.sh | ||
|
||
elif [ "$DRONE_JOB_BUILDTYPE" == "b5847f804b-db180b7bd2" ]; then | ||
|
||
echo '==================================> INSTALL' | ||
|
||
git clone https://github.com/boostorg/boost-ci.git boost-ci | ||
cp -pr boost-ci/ci boost-ci/.codecov.yml . | ||
|
||
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 | ||
|
||
echo '==================================> SCRIPT' | ||
|
||
cd $BOOST_ROOT/libs/$SELF | ||
ci/travis/valgrind.sh | ||
|
||
elif [ "$DRONE_JOB_BUILDTYPE" == "b5847f804b-cce9827eb5" ]; then | ||
|
||
echo '==================================> INSTALL' | ||
|
||
git clone https://github.com/boostorg/boost-ci.git boost-ci | ||
cp -pr boost-ci/ci boost-ci/.codecov.yml . | ||
|
||
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 | ||
|
||
echo '==================================> SCRIPT' | ||
|
||
if [ -n "${COVERITY_SCAN_NOTIFICATION_EMAIL}" -a \( "$DRONE_BRANCH" = "develop" -o "$DRONE_BRANCH" = "master" \) -a "$DRONE_BUILD_EVENT" = "push" ] ; then | ||
cd $BOOST_ROOT/libs/$SELF | ||
ci/travis/coverity.sh | ||
fi | ||
|
||
fi |
Oops, something went wrong.