Skip to content

Commit c490e24

Browse files
committed
add drone config [ci skip]
1 parent 8de6d9c commit c490e24

5 files changed

Lines changed: 75 additions & 0 deletions

File tree

.drone.star

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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("Job 0", "g++", packages="", buildtype="boost", image=linuxglobalimage, environment={'DRONE_JOB_UUID': 'b6589fc6ab'}, globalenv=globalenv),
18+
osx_cxx("Job 1", "g++", packages="", buildtype="boost", environment={'DRONE_JOB_UUID': '356a192b79'}, globalenv=globalenv),
19+
]
20+
21+
# from https://github.com/boostorg/boost-ci
22+
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: 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 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+
cd ..
19+
git clone -b $TRAVIS_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
20+
cd boost-root
21+
git submodule update --init tools/build
22+
git submodule update --init libs/config
23+
git submodule update --init tools/boostdep
24+
git submodule update --init tools/boost_install
25+
git submodule update --init libs/headers
26+
cp -r $TRAVIS_BUILD_DIR/* libs/lambda
27+
python tools/boostdep/depinst/depinst.py lambda
28+
./bootstrap.sh
29+
./b2 headers
30+
31+
echo '==================================> BEFORE_SCRIPT'
32+
33+
. $DRONE_BUILD_DIR/.drone/before-script.sh
34+
35+
echo '==================================> SCRIPT'
36+
37+
TOOLSET=gcc,clang
38+
if [ $TRAVIS_OS_NAME == osx ]; then TOOLSET=clang; fi
39+
./b2 --verbose-test libs/config/test//config_info toolset=$TOOLSET || true
40+
./b2 libs/lambda/test toolset=$TOOLSET
41+
42+
echo '==================================> AFTER_SUCCESS'
43+
44+
. $DRONE_BUILD_DIR/.drone/after-success.sh

0 commit comments

Comments
 (0)