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
8set -x
9export TRAVIS_BUILD_DIR=$(pwd)
10export DRONE_BUILD_DIR=$(pwd)
11export TRAVIS_BRANCH=$DRONE_BRANCH
12export VCS_COMMIT_ID=$DRONE_COMMIT
13export GIT_COMMIT=$DRONE_COMMIT
14export REPO_NAME=$DRONE_REPO
15export PATH=~/.local/bin:/usr/local/bin:$PATH
16
17if [ "$DRONE_JOB_BUILDTYPE" == "empty-aa99f335d3" ]; then
18
19echo '==================================> BEFORE_INSTALL'
20
21. .drone/before-install.sh
22
23echo '==================================> INSTALL'
24
25
26
27echo '==================================> SCRIPT'
28
29sh -c "../../../b2 -j2 $B2_ARGS"
30
31echo '==================================> AFTER_SUCCESS'
32
33. $DRONE_BUILD_DIR/.drone/after-success.sh
34
35fi
36