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 7set -e 8export TRAVIS_BUILD_DIR=$(pwd) 9export DRONE_BUILD_DIR=$(pwd) 10export TRAVIS_BRANCH=$DRONE_BRANCH 11export VCS_COMMIT_ID=$DRONE_COMMIT 12export GIT_COMMIT=$DRONE_COMMIT 13export REPO_NAME=$DRONE_REPO 14export PATH=~/.local/bin:/usr/local/bin:$PATH 15 16if [ "$DRONE_JOB_BUILDTYPE" == "boost" ]; then 17 18echo '==================================> INSTALL' 19 20cd .. 21git clone -b $TRAVIS_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root 22cd boost-root 23git submodule update --init tools/build 24git submodule update --init libs/config 25git submodule update --init tools/boostdep 26git submodule update --init tools/boost_install 27git submodule update --init libs/headers 28cp -r $TRAVIS_BUILD_DIR/* libs/tti 29python tools/boostdep/depinst/depinst.py tti 30./bootstrap.sh 31./b2 headers 32 33echo '==================================> SCRIPT' 34 35TOOLSET=gcc,clang 36if [ $TRAVIS_OS_NAME == osx ]; then TOOLSET=clang; fi 37./b2 --verbose-test libs/config/test//config_info toolset=$TOOLSET || true 38./b2 libs/tti/test toolset=$TOOLSET 39 40fi 41