]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/uuid/ci/codecov.sh
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / uuid / ci / codecov.sh
1 #! /bin/bash
2 #
3 # Copyright 2017 James E. King, III
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt)
7 #
8 # Bash script to run in travis to perform codecov.io integration
9 #
10
11 ###
12 ### NOTE: Make sure you grab and customize .codecov.yml
13 ###
14
15 # assumes cwd is the top level directory of the boost project
16 # assumes an environment variable $SELF is the boost project name
17
18 set -ex
19
20 B2_VARIANT=debug
21 ci/build.sh cxxflags=-fprofile-arcs cxxflags=-ftest-coverage linkflags=-fprofile-arcs linkflags=-ftest-coverage
22
23 # switch back to the original source code directory
24 # this ensures codecov doesn't get confused
25 cd $TRAVIS_BUILD_DIR
26
27 # get the version of lcov
28 lcov --version
29
30 # coverage files are in ../../b2 from this location
31 lcov --gcov-tool=gcov-7 --rc lcov_branch_coverage=1 --base-directory `pwd` --directory "$BOOST_ROOT" --capture --output-file all.info
32
33 # all.info contains all the coverage info for all projects - limit to ours
34 lcov --gcov-tool=gcov-7 --extract all.info "*/boost/$SELF/*" --output-file coverage.info
35
36 # dump a summary just for grins
37 lcov --gcov-tool=gcov-7 --list coverage.info
38
39 #
40 # upload to codecov.io
41 #
42 curl -s https://codecov.io/bash > .codecov
43 chmod +x .codecov
44 ./.codecov -f coverage.info -X gcov -x "gcov-7"