]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/uuid/ci/codecov.sh
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)
8 # Bash script to run in travis to perform codecov.io integration
12 ### NOTE: Make sure you grab and customize .codecov.yml
15 # assumes cwd is the top level directory of the boost project
16 # assumes an environment variable $SELF is the boost project name
21 ci
/build.sh cxxflags
=-fprofile-arcs cxxflags
=-ftest-coverage linkflags
=-fprofile-arcs linkflags
=-ftest-coverage
23 # switch back to the original source code directory
24 # this ensures codecov doesn't get confused
27 # get the version of lcov
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
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
36 # dump a summary just for grins
37 lcov
--gcov-tool=gcov-7
--list coverage.info
40 # upload to codecov.io
42 curl
-s https
://codecov.io
/bash
> .codecov
44 .
/.codecov
-f coverage.info
-X gcov
-x "gcov-7"