129 lines
3.3 KiB
Bash
Executable file
129 lines
3.3 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# Copyright 2020 Rene Rivera, Sam Darwin
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
# (See accompanying file LICENSE.txt or copy at http://boost.org/LICENSE_1_0.txt)
|
|
|
|
set -e
|
|
export TRAVIS_BUILD_DIR=$(pwd)
|
|
export DRONE_BUILD_DIR=$(pwd)
|
|
export TRAVIS_BRANCH=$DRONE_BRANCH
|
|
export VCS_COMMIT_ID=$DRONE_COMMIT
|
|
export GIT_COMMIT=$DRONE_COMMIT
|
|
export REPO_NAME=$DRONE_REPO
|
|
export PATH=~/.local/bin:/usr/local/bin:$PATH
|
|
|
|
if [ "$DRONE_JOB_BUILDTYPE" == "boost" ]; then
|
|
|
|
echo '==================================> INSTALL'
|
|
|
|
git clone https://github.com/boostorg/boost-ci.git boost-ci
|
|
cp -pr boost-ci/ci boost-ci/.codecov.yml .
|
|
|
|
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
|
unset -f cd
|
|
fi
|
|
|
|
export SELF=`basename $REPO_NAME`
|
|
export BOOST_CI_TARGET_BRANCH="$TRAVIS_BRANCH"
|
|
export BOOST_CI_SRC_FOLDER=$(pwd)
|
|
|
|
. ./ci/common_install.sh
|
|
|
|
echo '==================================> SCRIPT'
|
|
|
|
cd $BOOST_ROOT/libs/$SELF
|
|
ci/travis/build.sh
|
|
|
|
elif [ "$DRONE_JOB_BUILDTYPE" == "b5847f804b-bbb3de2b00" ]; then
|
|
|
|
echo '==================================> INSTALL'
|
|
|
|
git clone https://github.com/boostorg/boost-ci.git boost-ci
|
|
cp -pr boost-ci/ci boost-ci/.codecov.yml .
|
|
|
|
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
|
unset -f cd
|
|
fi
|
|
|
|
export SELF=`basename $REPO_NAME`
|
|
export BOOST_CI_TARGET_BRANCH="$TRAVIS_BRANCH"
|
|
export BOOST_CI_SRC_FOLDER=$(pwd)
|
|
|
|
. ./ci/common_install.sh
|
|
|
|
echo '==================================> SCRIPT'
|
|
|
|
pushd /tmp && git clone https://github.com/linux-test-project/lcov.git && export PATH=/tmp/lcov/bin:$PATH && which lcov && lcov --version && popd
|
|
cd $BOOST_ROOT/libs/$SELF
|
|
ci/travis/codecov.sh
|
|
|
|
elif [ "$DRONE_JOB_BUILDTYPE" == "b5847f804b-ed45733e6c" ]; then
|
|
|
|
echo '==================================> INSTALL'
|
|
|
|
git clone https://github.com/boostorg/boost-ci.git boost-ci
|
|
cp -pr boost-ci/ci boost-ci/.codecov.yml .
|
|
|
|
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
|
unset -f cd
|
|
fi
|
|
|
|
export SELF=`basename $REPO_NAME`
|
|
export BOOST_CI_TARGET_BRANCH="$TRAVIS_BRANCH"
|
|
export BOOST_CI_SRC_FOLDER=$(pwd)
|
|
|
|
. ./ci/common_install.sh
|
|
|
|
echo '==================================> SCRIPT'
|
|
|
|
cd $BOOST_ROOT/libs/$SELF
|
|
ci/travis/cppcheck.sh
|
|
|
|
elif [ "$DRONE_JOB_BUILDTYPE" == "b5847f804b-db180b7bd2" ]; then
|
|
|
|
echo '==================================> INSTALL'
|
|
|
|
git clone https://github.com/boostorg/boost-ci.git boost-ci
|
|
cp -pr boost-ci/ci boost-ci/.codecov.yml .
|
|
|
|
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
|
unset -f cd
|
|
fi
|
|
|
|
export SELF=`basename $REPO_NAME`
|
|
export BOOST_CI_TARGET_BRANCH="$TRAVIS_BRANCH"
|
|
export BOOST_CI_SRC_FOLDER=$(pwd)
|
|
|
|
. ./ci/common_install.sh
|
|
|
|
echo '==================================> SCRIPT'
|
|
|
|
cd $BOOST_ROOT/libs/$SELF
|
|
ci/travis/valgrind.sh
|
|
|
|
elif [ "$DRONE_JOB_BUILDTYPE" == "b5847f804b-cce9827eb5" ]; then
|
|
|
|
echo '==================================> INSTALL'
|
|
|
|
git clone https://github.com/boostorg/boost-ci.git boost-ci
|
|
cp -pr boost-ci/ci boost-ci/.codecov.yml .
|
|
|
|
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
|
unset -f cd
|
|
fi
|
|
|
|
export SELF=`basename $REPO_NAME`
|
|
export BOOST_CI_TARGET_BRANCH="$TRAVIS_BRANCH"
|
|
export BOOST_CI_SRC_FOLDER=$(pwd)
|
|
|
|
. ./ci/common_install.sh
|
|
|
|
echo '==================================> SCRIPT'
|
|
|
|
if [ -n "${COVERITY_SCAN_NOTIFICATION_EMAIL}" -a \( "$DRONE_BRANCH" = "develop" -o "$DRONE_BRANCH" = "master" \) -a "$DRONE_BUILD_EVENT" = "push" ] ; then
|
|
cd $BOOST_ROOT/libs/$SELF
|
|
ci/travis/coverity.sh
|
|
fi
|
|
|
|
fi
|