Skip to content

Commit 10a5193

Browse files
committed
add drone config [ci skip]
1 parent cf82092 commit 10a5193

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

.drone.star

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 COMPILER=g++ CXXSTD=03,11 Job 0", "g++", packages="", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'TOOLSET': 'gcc', 'COMPILER': 'g++', 'CXXSTD': '03,11', 'DRONE_JOB_UUID': 'b6589fc6ab'}, globalenv=globalenv),
18+
linux_cxx("TOOLSET=gcc COMPILER=g++-5 CXXSTD=03,11,14,1z Job 1", "g++-5", packages="g++-5", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'TOOLSET': 'gcc', 'COMPILER': 'g++-5', 'CXXSTD': '03,11,14,1z', 'DRONE_JOB_UUID': '356a192b79'}, globalenv=globalenv),
19+
linux_cxx("TOOLSET=gcc COMPILER=g++-6 CXXSTD=03,11,14,1z Job 2", "g++-6", packages="g++-6", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'TOOLSET': 'gcc', 'COMPILER': 'g++-6', 'CXXSTD': '03,11,14,1z', 'DRONE_JOB_UUID': 'da4b9237ba'}, globalenv=globalenv),
20+
linux_cxx("TOOLSET=gcc COMPILER=g++-7 CXXSTD=03,11,14,17 Job 3", "g++-7", packages="g++-7", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'TOOLSET': 'gcc', 'COMPILER': 'g++-7', 'CXXSTD': '03,11,14,17', 'DRONE_JOB_UUID': '77de68daec'}, globalenv=globalenv),
21+
linux_cxx("TOOLSET=clang COMPILER=clang++ CXXSTD=03,11 Job 4", "clang++", packages="", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'TOOLSET': 'clang', 'COMPILER': 'clang++', 'CXXSTD': '03,11', 'DRONE_JOB_UUID': '1b64538924'}, globalenv=globalenv),
22+
linux_cxx("TOOLSET=clang COMPILER=clang++-4.0 CXXSTD=03, Job 5", "clang++-4.0", packages="clang-4.0", llvm_os="xenial", llvm_ver="4.0", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'TOOLSET': 'clang', 'COMPILER': 'clang++-4.0', 'CXXSTD': '03,11,14,1z', 'DRONE_JOB_UUID': 'ac3478d69a'}, globalenv=globalenv),
23+
linux_cxx("TOOLSET=clang COMPILER=clang++-5.0 CXXSTD=03, Job 6", "clang++-5.0", packages="clang-5.0", llvm_os="xenial", llvm_ver="5.0", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'TOOLSET': 'clang', 'COMPILER': 'clang++-5.0', 'CXXSTD': '03,11,14,1z', 'DRONE_JOB_UUID': 'c1dfd96eea'}, globalenv=globalenv),
24+
osx_cxx("TOOLSET=clang COMPILER=clang++ CXXSTD=03,11,1 Job 7", "clang++", packages="", buildtype="boost", buildscript="drone", environment={'TOOLSET': 'clang', 'COMPILER': 'clang++', 'CXXSTD': '03,11,14,1z', 'DRONE_JOB_UUID': '902ba3cda1'}, globalenv=globalenv),
25+
]
26+
27+
# from https://github.com/boostorg/boost-ci
28+
load("@boost_ci//ci/drone/:functions.star", "linux_cxx","windows_cxx","osx_cxx","freebsd_cxx")

.drone/drone.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
3+
# Copyright 2020 Rene Rivera, Sam Darwin
4+
# Distributed under the Boost Software License, Version 1.0.
5+
# (See accompanying file LICENSE.txt or copy at http://boost.org/LICENSE_1_0.txt)
6+
7+
set -e
8+
export TRAVIS_BUILD_DIR=$(pwd)
9+
export DRONE_BUILD_DIR=$(pwd)
10+
export TRAVIS_BRANCH=$DRONE_BRANCH
11+
export VCS_COMMIT_ID=$DRONE_COMMIT
12+
export GIT_COMMIT=$DRONE_COMMIT
13+
export REPO_NAME=$DRONE_REPO
14+
export PATH=~/.local/bin:/usr/local/bin:$PATH
15+
16+
if [ "$DRONE_JOB_BUILDTYPE" == "boost" ]; then
17+
18+
echo '==================================> INSTALL'
19+
20+
BOOST_BRANCH=develop && [ "$TRAVIS_BRANCH" == "master" ] && BOOST_BRANCH=master || true
21+
cd ..
22+
git clone -b $BOOST_BRANCH https://github.com/boostorg/boost.git boost-root
23+
cd boost-root
24+
git submodule update --init tools/build
25+
git submodule update --init libs/config
26+
git submodule update --init tools/boostdep
27+
cp -r $TRAVIS_BUILD_DIR/* libs/tuple
28+
python tools/boostdep/depinst/depinst.py tuple
29+
./bootstrap.sh
30+
./b2 headers
31+
32+
echo '==================================> SCRIPT'
33+
34+
echo "using $TOOLSET : : $COMPILER ;" > ~/user-config.jam
35+
./b2 -j 3 libs/tuple/test toolset=$TOOLSET cxxstd=$CXXSTD
36+
37+
fi

0 commit comments

Comments
 (0)