Skip to content

Commit 8f516ca

Browse files
committed
add drone config [ci skip]
1 parent 4a699a3 commit 8f516ca

5 files changed

Lines changed: 116 additions & 0 deletions

File tree

.drone.star

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Use, modification, and distribution are
2+
# subject to the Boost Software License, Version 1.0. (See accompanying
3+
# file LICENSE.txt)
4+
#
5+
# Copyright Rene Rivera 2020.
6+
7+
# For Drone CI we use the Starlark scripting language to reduce duplication.
8+
# As the yaml syntax for Drone CI is rather limited.
9+
#
10+
#
11+
globalenv={}
12+
linuxglobalimage="cppalliance/droneubuntu1604:1"
13+
windowsglobalimage="cppalliance/dronevs2019"
14+
15+
def main(ctx):
16+
return [
17+
linux_cxx("TOOLSET=gcc-4.4 CXXSTD=98,0x Job 0", "g++", packages="g++-4.4", buildtype="boost", image="cppalliance/droneubuntu1604:1", environment={'TOOLSET': 'gcc-4.4', 'CXXSTD': '98,0x', 'DRONE_JOB_UUID': 'b6589fc6ab'}, globalenv=globalenv),
18+
linux_cxx("TOOLSET=gcc-4.6 CXXSTD=03,0x Job 1", "g++", packages="g++-4.6", buildtype="boost", image="cppalliance/droneubuntu1604:1", environment={'TOOLSET': 'gcc-4.6', 'CXXSTD': '03,0x', 'DRONE_JOB_UUID': '356a192b79'}, globalenv=globalenv),
19+
linux_cxx("TOOLSET=gcc-4.7 CXXSTD=03,11 Job 2", "g++", packages="g++-4.7", buildtype="boost", image="cppalliance/droneubuntu1604:1", environment={'TOOLSET': 'gcc-4.7', 'CXXSTD': '03,11', 'DRONE_JOB_UUID': 'da4b9237ba'}, globalenv=globalenv),
20+
linux_cxx("TOOLSET=gcc-4.8 CXXSTD=03,11,1y Job 3", "g++", packages="g++-4.8", buildtype="boost", image="cppalliance/droneubuntu1604:1", environment={'TOOLSET': 'gcc-4.8', 'CXXSTD': '03,11,1y', 'DRONE_JOB_UUID': '77de68daec'}, globalenv=globalenv),
21+
linux_cxx("TOOLSET=gcc-4.9 CXXSTD=03,11,14 Job 4", "g++", packages="g++-4.9", buildtype="boost", image="cppalliance/droneubuntu1604:1", environment={'TOOLSET': 'gcc-4.9', 'CXXSTD': '03,11,14', 'DRONE_JOB_UUID': '1b64538924'}, globalenv=globalenv),
22+
linux_cxx("TOOLSET=gcc-5 CXXSTD=03,11,14,17 Job 5", "g++", packages="g++-5", buildtype="boost", image="cppalliance/droneubuntu1604:1", environment={'TOOLSET': 'gcc-5', 'CXXSTD': '03,11,14,17', 'DRONE_JOB_UUID': 'ac3478d69a'}, globalenv=globalenv),
23+
linux_cxx("TOOLSET=gcc-6 CXXSTD=03,11,14,17 Job 6", "g++", packages="g++-6", buildtype="boost", image="cppalliance/droneubuntu1604:1", environment={'TOOLSET': 'gcc-6', 'CXXSTD': '03,11,14,17', 'DRONE_JOB_UUID': 'c1dfd96eea'}, globalenv=globalenv),
24+
linux_cxx("TOOLSET=gcc-7 CXXSTD=03,11,14,17 Job 7", "g++", packages="g++-7", buildtype="boost", image="cppalliance/droneubuntu1604:1", environment={'TOOLSET': 'gcc-7', 'CXXSTD': '03,11,14,17', 'DRONE_JOB_UUID': '902ba3cda1'}, globalenv=globalenv),
25+
linux_cxx("TOOLSET=gcc-8 CXXSTD=03,11,14,17,2a Job 8", "g++", packages="g++-8", buildtype="boost", image="cppalliance/droneubuntu1604:1", environment={'TOOLSET': 'gcc-8', 'CXXSTD': '03,11,14,17,2a', 'DRONE_JOB_UUID': 'fe5dbbcea5'}, globalenv=globalenv),
26+
linux_cxx("TOOLSET=clang-3.5 CXXSTD=03,11,14,1z Job 9", "g++", packages="clang-3.5", buildtype="boost", image="cppalliance/droneubuntu1604:1", environment={'TOOLSET': 'clang-3.5', 'CXXSTD': '03,11,14,1z', 'DRONE_JOB_UUID': '0ade7c2cf9'}, globalenv=globalenv),
27+
linux_cxx("TOOLSET=clang-3.6 CXXSTD=03,11,14,1z Job 10", "g++", packages="clang-3.6", buildtype="boost", image="cppalliance/droneubuntu1604:1", environment={'TOOLSET': 'clang-3.6', 'CXXSTD': '03,11,14,1z', 'DRONE_JOB_UUID': 'b1d5781111'}, globalenv=globalenv),
28+
linux_cxx("TOOLSET=clang-3.7 CXXSTD=03,11,14,1z Job 11", "g++", packages="clang-3.7", buildtype="boost", image="cppalliance/droneubuntu1604:1", environment={'TOOLSET': 'clang-3.7', 'CXXSTD': '03,11,14,1z', 'DRONE_JOB_UUID': '17ba079149'}, globalenv=globalenv),
29+
linux_cxx("TOOLSET=clang-3.8 CXXSTD=03,11,14,1z Job 12", "g++", packages="clang-3.8", buildtype="boost", image="cppalliance/droneubuntu1604:1", environment={'TOOLSET': 'clang-3.8', 'CXXSTD': '03,11,14,1z', 'DRONE_JOB_UUID': '7b52009b64'}, globalenv=globalenv),
30+
linux_cxx("TOOLSET=clang-3.9 CXXSTD=03,11,14,1z Job 13", "g++", packages="clang-3.9", buildtype="boost", image="cppalliance/droneubuntu1604:1", environment={'TOOLSET': 'clang-3.9', 'CXXSTD': '03,11,14,1z', 'DRONE_JOB_UUID': 'bd307a3ec3'}, globalenv=globalenv),
31+
linux_cxx("TOOLSET=clang-4.0 CXXSTD=03,11,14,1z Job 14", "g++", packages="clang-4.0", buildtype="boost", image="cppalliance/droneubuntu1604:1", environment={'TOOLSET': 'clang-4.0', 'CXXSTD': '03,11,14,1z', 'DRONE_JOB_UUID': 'fa35e19212'}, globalenv=globalenv),
32+
linux_cxx("TOOLSET=clang-5.0 CXXSTD=03,11,14,17,2a Job 15", "g++", packages="clang-5.0", llvm_os="xenial", llvm_ver="5.0", buildtype="boost", image="cppalliance/droneubuntu1604:1", environment={'TOOLSET': 'clang-5.0', 'CXXSTD': '03,11,14,17,2a', 'DRONE_JOB_UUID': 'f1abd67035'}, globalenv=globalenv),
33+
linux_cxx("TOOLSET=clang-6.0 CXXSTD=03,11,14,17,2a Job 16", "g++", packages="clang-6.0", llvm_os="xenial", llvm_ver="6.0", buildtype="boost", image="cppalliance/droneubuntu1604:1", environment={'TOOLSET': 'clang-6.0', 'CXXSTD': '03,11,14,17,2a', 'DRONE_JOB_UUID': '1574bddb75'}, globalenv=globalenv),
34+
linux_cxx("TOOLSET=clang-7.0 CXXSTD=03,11,14,17,2a Job 17", "g++", packages="clang-7", llvm_os="xenial", llvm_ver="7", buildtype="boost", image="cppalliance/droneubuntu1604:1", environment={'TOOLSET': 'clang-7.0', 'CXXSTD': '03,11,14,17,2a', 'DRONE_JOB_UUID': '0716d9708d'}, globalenv=globalenv),
35+
osx_cxx("TOOLSET=clang COMPILER=clang++ CXXSTD=03,11,1 Job 18", "clang++", packages="", buildtype="boost", environment={'TOOLSET': 'clang', 'COMPILER': 'clang++', 'CXXSTD': '03,11,14,1z', 'DRONE_JOB_UUID': '9e6a55b6b4'}, globalenv=globalenv),
36+
]
37+
38+
# from https://github.com/boostorg/boost-ci
39+
load("@boost_ci//ci/drone/:functions.star", "linux_cxx","windows_cxx","osx_cxx","freebsd_cxx")

.drone/after-success.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+

.drone/before-install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+

.drone/before-script.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+

.drone/boost.sh

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
export TRAVIS_BUILD_DIR=$(pwd)
5+
export DRONE_BUILD_DIR=$(pwd)
6+
export TRAVIS_BRANCH=$DRONE_BRANCH
7+
export VCS_COMMIT_ID=$DRONE_COMMIT
8+
export GIT_COMMIT=$DRONE_COMMIT
9+
export REPO_NAME=$DRONE_REPO
10+
export PATH=~/.local/bin:/usr/local/bin:$PATH
11+
12+
echo '==================================> BEFORE_INSTALL'
13+
14+
. .drone/before-install.sh
15+
16+
echo '==================================> INSTALL'
17+
18+
BOOST_BRANCH=develop && [ "$TRAVIS_BRANCH" == "master" ] && BOOST_BRANCH=master || true
19+
cd ..
20+
git clone --depth 1 -b $BOOST_BRANCH https://github.com/boostorg/boost.git boost-root
21+
cd boost-root
22+
git submodule init libs/array
23+
git submodule init libs/assert
24+
git submodule init libs/bind
25+
git submodule init libs/concept_check
26+
git submodule init libs/config
27+
git submodule init libs/container_hash
28+
git submodule init libs/conversion
29+
git submodule init libs/core
30+
git submodule init libs/detail
31+
git submodule init libs/function
32+
git submodule init libs/function_types
33+
git submodule init libs/functional
34+
git submodule init libs/integer
35+
git submodule init libs/iterator
36+
git submodule init libs/lambda
37+
git submodule init libs/move
38+
git submodule init libs/mpl
39+
git submodule init libs/optional
40+
git submodule init libs/predef
41+
git submodule init libs/preprocessor
42+
git submodule init libs/smart_ptr
43+
git submodule init libs/static_assert
44+
git submodule init libs/throw_exception
45+
git submodule init libs/tuple
46+
git submodule init libs/type_index
47+
git submodule init libs/type_traits
48+
git submodule init libs/typeof
49+
git submodule init libs/utility
50+
git submodule init libs/headers tools/boost_install tools/build
51+
git submodule update
52+
rm -rf libs/fusion
53+
cp -rp $TRAVIS_BUILD_DIR libs/fusion
54+
ln -s $(pwd)/libs/fusion $TRAVIS_BUILD_DIR
55+
./bootstrap.sh
56+
./b2 headers
57+
58+
echo '==================================> BEFORE_SCRIPT'
59+
60+
. $DRONE_BUILD_DIR/.drone/before-script.sh
61+
62+
echo '==================================> SCRIPT'
63+
64+
./b2 -j`(nproc || sysctl -n hw.ncpu) 2> /dev/null` libs/fusion/test toolset=$TOOLSET cxxstd=$CXXSTD
65+
66+
echo '==================================> AFTER_SUCCESS'
67+
68+
. $DRONE_BUILD_DIR/.drone/after-success.sh

0 commit comments

Comments
 (0)