Skip to content

Commit 9cd6a05

Browse files
committed
Drone: drone.sh
1 parent c524a55 commit 9cd6a05

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.drone/drone.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 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 PATH=~/.local/bin:/usr/local/bin:$PATH
10+
11+
echo '==================================> BEFORE_INSTALL'
12+
13+
. .drone/before-install.sh
14+
15+
echo '==================================> INSTALL'
16+
17+
cd ..
18+
for i in 1 2 3 4 5; do git clone -b $TRAVIS_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root && break || sleep 15; done
19+
cd boost-root
20+
for i in 1 2 3 4 5; do git submodule update --init tools/build && break || sleep 15; done
21+
for i in 1 2 3 4 5; do git submodule update --init libs/config && break || sleep 15; done
22+
for i in 1 2 3 4 5; do git submodule update --init libs/polygon && break || sleep 15; done
23+
for i in 1 2 3 4 5; do git submodule update --init tools/boost_install && break || sleep 15; done
24+
for i in 1 2 3 4 5; do git submodule update --init libs/headers && break || sleep 15; done
25+
for i in 1 2 3 4 5; do git submodule update --init tools/boostdep && break || sleep 15; done
26+
cp -r $TRAVIS_BUILD_DIR/* libs/multiprecision
27+
for i in 1 2 3 4 5; do python tools/boostdep/depinst/depinst.py multiprecision && break || sleep 15; done
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+
echo "using $TOOLSET : : $COMPILER : <cxxflags>-std=$CXXSTD ;" > ~/user-config.jam
38+
(cd libs/config/test && ../../../b2 print_config_info print_math_info toolset=$TOOLSET)
39+
(cd libs/multiprecision/test && ../../../b2 -j3 toolset=$TOOLSET $TEST_SUITE define=CI_SUPPRESS_KNOWN_ISSUES define=SLOW_COMPILER)
40+
41+
echo '==================================> AFTER_SUCCESS'
42+
43+
. $DRONE_BUILD_DIR/.drone/after-success.sh

0 commit comments

Comments
 (0)