Files
boost-ci/ci/github/codecov.sh
Alexander Grund 6fcfe08e06 Split coverage into setup and upload
Build is done manually by the regular build.sh script. All we need is the setup (setting of CXXFLAGS etc.) and the upload part.
This allows to easily run multiple build runs (e.g. in different configurations)

Closes #94
2021-11-16 13:27:52 +01:00

20 lines
536 B
Bash
Executable File

#! /bin/bash
#
# Copyright 2021 Alexander Grund
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
#
# Bash script to run on Github to perform codecov.io integration
#
set -ex
source $(dirname "${BASH_SOURCE[0]}")/../codecov.sh "$1"
if [[ "$1" == "setup" ]]; then
echo "B2_VARIANT=$B2_VARIANT" >> "$GITHUB_ENV"
echo "B2_CXXFLAGS=$B2_CXXFLAGS" >> "$GITHUB_ENV"
echo "B2_LINKFLAGS=$B2_LINKFLAGS" >> "$GITHUB_ENV"
fi