• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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" == "boost" ]; then
18
19echo '==================================> INSTALL'
20
21git clone https://github.com/boostorg/boost-ci.git boost-ci
22cp -pr boost-ci/ci boost-ci/.codecov.yml .
23
24if [ "$TRAVIS_OS_NAME" == "osx" ]; then
25    unset -f cd
26fi
27
28export SELF=`basename $REPO_NAME`
29export BOOST_CI_TARGET_BRANCH="$TRAVIS_BRANCH"
30export BOOST_CI_SRC_FOLDER=$(pwd)
31
32. ./ci/common_install.sh
33
34echo '==================================> SCRIPT'
35
36cd $BOOST_ROOT/libs/$SELF
37ci/travis/build.sh
38
39elif [ "$DRONE_JOB_BUILDTYPE" == "b5847f804b-0fcaf592f9" ]; then
40
41echo '==================================> INSTALL'
42
43git clone https://github.com/boostorg/boost-ci.git boost-ci
44cp -pr boost-ci/ci boost-ci/.codecov.yml .
45
46if [ "$TRAVIS_OS_NAME" == "osx" ]; then
47    unset -f cd
48fi
49
50export SELF=`basename $REPO_NAME`
51export BOOST_CI_TARGET_BRANCH="$TRAVIS_BRANCH"
52export BOOST_CI_SRC_FOLDER=$(pwd)
53
54. ./ci/common_install.sh
55
56echo '==================================> SCRIPT'
57
58cd $BOOST_ROOT/libs/$SELF
59ci/travis/codecov.sh
60
61elif [ "$DRONE_JOB_BUILDTYPE" == "b5847f804b-db180b7bd2" ]; then
62
63echo '==================================> INSTALL'
64
65git clone https://github.com/boostorg/boost-ci.git boost-ci
66cp -pr boost-ci/ci boost-ci/.codecov.yml .
67
68if [ "$TRAVIS_OS_NAME" == "osx" ]; then
69    unset -f cd
70fi
71
72export SELF=`basename $REPO_NAME`
73export BOOST_CI_TARGET_BRANCH="$TRAVIS_BRANCH"
74export BOOST_CI_SRC_FOLDER=$(pwd)
75
76. ./ci/common_install.sh
77
78echo '==================================> SCRIPT'
79
80cd $BOOST_ROOT/libs/$SELF
81ci/travis/valgrind.sh
82
83elif [ "$DRONE_JOB_BUILDTYPE" == "b5847f804b-cce9827eb5" ]; then
84
85echo '==================================> INSTALL'
86
87git clone https://github.com/boostorg/boost-ci.git boost-ci
88cp -pr boost-ci/ci boost-ci/.codecov.yml .
89
90if [ "$TRAVIS_OS_NAME" == "osx" ]; then
91    unset -f cd
92fi
93
94export SELF=`basename $REPO_NAME`
95export BOOST_CI_TARGET_BRANCH="$TRAVIS_BRANCH"
96export BOOST_CI_SRC_FOLDER=$(pwd)
97
98. ./ci/common_install.sh
99
100echo '==================================> SCRIPT'
101
102if  [ -n "${COVERITY_SCAN_NOTIFICATION_EMAIL}" -a \( "$DRONE_BRANCH" = "develop" -o "$DRONE_BRANCH" = "master" \) -a "$DRONE_BUILD_EVENT" = "push" ] ; then
103cd $BOOST_ROOT/libs/$SELF
104ci/travis/coverity.sh
105fi
106
107fi
108