Skip to content

Commit 7056c33

Browse files
committed
add drone config [ci skip]
1 parent 0414abe commit 7056c33

File tree

7 files changed

+163
-0
lines changed

7 files changed

+163
-0
lines changed

.drone.star

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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={'B2_VARIANT': 'variant=release,debug'}
12+
linuxglobalimage="cppalliance/droneubuntu1404:1"
13+
windowsglobalimage="cppalliance/dronevs2019"
14+
15+
def main(ctx):
16+
return [
17+
linux_cxx("COMMENT=C++03 TOOLSET=gcc,gcc-7 Job 0", "g++", packages="g++-7", buildtype="boost", image=linuxglobalimage, environment={'COMMENT': 'C++03', 'TOOLSET': 'gcc,gcc-7', 'DRONE_JOB_UUID': 'b6589fc6ab'}, globalenv=globalenv),
18+
linux_cxx("COMMENT=C++11 TOOLSET=clang CXXSTD=11 Job 1", "clang++", packages="g++-7", buildtype="boost", image=linuxglobalimage, environment={'COMMENT': 'C++11', 'TOOLSET': 'clang', 'CXXSTD': '11', 'DRONE_JOB_UUID': '356a192b79'}, globalenv=globalenv),
19+
linux_cxx("COMMENT=valgrind TOOLSET=clang B2_VARIANT=var Job 2", "clang++", packages="clang-5.0 libstdc++-7-dev valgrind", llvm_os="trusty", llvm_ver="5.0", buildtype="boost", image=linuxglobalimage, environment={'COMMENT': 'valgrind', 'TOOLSET': 'clang', 'B2_VARIANT': 'variant=debug', 'TESTFLAGS': 'testing.launcher=valgrind', 'DRONE_JOB_UUID': 'da4b9237ba'}, globalenv=globalenv),
20+
linux_cxx("COMMENT=cppcheck Job 3", "g++", packages="binutils-gold gdb libc6-dbg", buildtype="15edef0d20-06e41ec903", image=linuxglobalimage, environment={'COMMENT': 'cppcheck', 'DRONE_JOB_UUID': '77de68daec'}, globalenv=globalenv),
21+
linux_cxx("COMMENT=CodeCov TOOLSET=gcc-7 Job 4", "g++", packages="gcc-7 g++-7", buildtype="15edef0d20-35de83136e", image=linuxglobalimage, environment={'COMMENT': 'CodeCov', 'TOOLSET': 'gcc-7', 'DRONE_JOB_UUID': '1b64538924'}, globalenv=globalenv),
22+
]
23+
24+
# from https://github.com/boostorg/boost-ci
25+
load("@boost_ci//ci/drone/:functions.star", "linux_cxx","windows_cxx","osx_cxx","freebsd_cxx")

.drone/15edef0d20-06e41ec903.sh

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
export TRAVIS_BUILD_DIR=$(pwd)
5+
export TRAVIS_BRANCH=$DRONE_BRANCH
6+
export TRAVIS_OS_NAME=${DRONE_JOB_OS_NAME:-linux}
7+
export VCS_COMMIT_ID=$DRONE_COMMIT
8+
export GIT_COMMIT=$DRONE_COMMIT
9+
export DRONE_CURRENT_BUILD_DIR=$(pwd)
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+
export SELF=`basename $DRONE_REPO`
19+
cd ..
20+
git clone -b $TRAVIS_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
21+
cd boost-root
22+
git submodule update -q --init tools/boostdep
23+
git submodule update -q --init tools/build
24+
git submodule update -q --init tools/inspect
25+
cp -r $TRAVIS_BUILD_DIR/* libs/$SELF
26+
export BOOST_ROOT="`pwd`"
27+
export PATH="`pwd`":$PATH
28+
python tools/boostdep/depinst/depinst.py $SELF --include example
29+
./bootstrap.sh
30+
./b2 headers
31+
32+
echo '==================================> BEFORE_SCRIPT'
33+
34+
. $DRONE_CURRENT_BUILD_DIR/.drone/before-script.sh
35+
36+
echo '==================================> SCRIPT'
37+
38+
libs/$SELF/ci/cppcheck.sh
39+
40+
echo '==================================> AFTER_SUCCESS'
41+
42+
. $DRONE_CURRENT_BUILD_DIR/.drone/after-success.sh

.drone/15edef0d20-35de83136e.sh

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
export TRAVIS_BUILD_DIR=$(pwd)
5+
export TRAVIS_BRANCH=$DRONE_BRANCH
6+
export TRAVIS_OS_NAME=${DRONE_JOB_OS_NAME:-linux}
7+
export VCS_COMMIT_ID=$DRONE_COMMIT
8+
export GIT_COMMIT=$DRONE_COMMIT
9+
export DRONE_CURRENT_BUILD_DIR=$(pwd)
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+
export SELF=`basename $DRONE_REPO`
19+
cd ..
20+
git clone -b $TRAVIS_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
21+
cd boost-root
22+
git submodule update -q --init tools/boostdep
23+
git submodule update -q --init tools/build
24+
git submodule update -q --init tools/inspect
25+
cp -r $TRAVIS_BUILD_DIR/* libs/$SELF
26+
export BOOST_ROOT="`pwd`"
27+
export PATH="`pwd`":$PATH
28+
python tools/boostdep/depinst/depinst.py $SELF --include example
29+
./bootstrap.sh
30+
./b2 headers
31+
32+
echo '==================================> BEFORE_SCRIPT'
33+
34+
. $DRONE_CURRENT_BUILD_DIR/.drone/before-script.sh
35+
36+
echo '==================================> SCRIPT'
37+
38+
pushd /tmp && git clone https://github.com/linux-test-project/lcov.git && cd lcov && sudo make install && which lcov && lcov --version && popd
39+
cd libs/$SELF
40+
ci/codecov.sh
41+
42+
echo '==================================> AFTER_SUCCESS'
43+
44+
. $DRONE_CURRENT_BUILD_DIR/.drone/after-success.sh

.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: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
export TRAVIS_BUILD_DIR=$(pwd)
5+
export TRAVIS_BRANCH=$DRONE_BRANCH
6+
export TRAVIS_OS_NAME=${DRONE_JOB_OS_NAME:-linux}
7+
export VCS_COMMIT_ID=$DRONE_COMMIT
8+
export GIT_COMMIT=$DRONE_COMMIT
9+
export DRONE_CURRENT_BUILD_DIR=$(pwd)
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+
export SELF=`basename $DRONE_REPO`
19+
cd ..
20+
git clone -b $TRAVIS_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
21+
cd boost-root
22+
git submodule update -q --init tools/boostdep
23+
git submodule update -q --init tools/build
24+
git submodule update -q --init tools/inspect
25+
cp -r $TRAVIS_BUILD_DIR/* libs/$SELF
26+
export BOOST_ROOT="`pwd`"
27+
export PATH="`pwd`":$PATH
28+
python tools/boostdep/depinst/depinst.py $SELF --include example
29+
./bootstrap.sh
30+
./b2 headers
31+
32+
echo '==================================> BEFORE_SCRIPT'
33+
34+
. $DRONE_CURRENT_BUILD_DIR/.drone/before-script.sh
35+
36+
echo '==================================> SCRIPT'
37+
38+
cd libs/$SELF
39+
ci/build.sh
40+
41+
echo '==================================> AFTER_SUCCESS'
42+
43+
. $DRONE_CURRENT_BUILD_DIR/.drone/after-success.sh

0 commit comments

Comments
 (0)